scripting: parameters for SetShadow(?)

I've looked through all the documentation I could find and I can't find a reference regarding the SetShadow property. The only reason I know it exists is b/c it popped up while I was typing in the Script editor. Of course, I was looking for a way to control an object's shadow/glow via script. Does anyone know what this property's parameters are, e.g. Object.SetShadow(a,b,c); what are 'a' 'b' and 'c', how many parameters are there, what are their data types (numeric, hex)? Unfortunately there isn't a matching GetShadow property to disclose an object's current shadow/glow settings.
6,954 views 5 replies
Reply #1 Top
From https://www.stardock.com/products/desktopx/documentation/index.html (Developers Guide > Scripting > Object namespace)


Object.SetShadow
also Object.States("name").SetShadow

This allows you to assign the shadow options of a state or all states of an object.
Syntax:
Object.SetShadow boolEnabled, sharpness, darkness, offsetX, offsetY, sdwColor

Sharpness ranges from 0 to 100.
Darkness can take values greater than 255.
Reply #2 Top
Thank you. So much for my claim of having read all of the available documentation.
Reply #3 Top
Hehe. We all do that from time to time.
The cod I liked to is probably the most reliable one as it gets updated most freaquently. All though sometimes, espesially during beta stages you have to dig in the history log to get the info needed.
Reply #4 Top
Ok I found those properties in the Documentation but what I am confused about is how to set the color of the shadow via script, any help?
Reply #5 Top
I belive the colors are set via RGB..

Object.SetShadow boolEnabled, sharpness, darkness, offsetX, offsetY, RGB(100,200,150)

I think that is how it works.
Not able to test it this min.