You've got some nice functionality in this. Nice work.

Originally Posted by
Roland Kaiser
ok, i fixed my problem by my own.
Good.
I've not had time to look at this until now, but this is how I would have done it. The code for your two sliders:
Code:
[ISlider,"Shadow Int",75,1,1,100,"Set The Shadow Intenesity",
[IPress,Light:Shadow:Shadow]
[ISet,Light:Shadow:Intensity,[IGet,"zscript:Shadow Int"]],,150
]
[PenMove,14]
[ISlider,"Shadow Len",75,1,1,100,"Set The Shadow Lenght",
[IPress,Light:Shadow:Shadow]
[ISet,Light:Shadow:Length,[IGet,"zscript:Shadow Len"]],,150
]
As you will have discovered, you need to get the value from the zscript slider before you can set the UI interface sliders. The zscript sliders can be referenced as I've done above but you must make sure the button paths are correct. I frequently change the names of sliders and then get an error becuse I've forgotten to update the button path code!
You don't really need the [IPress,Light:Shadow:Shadow] as the slider values are set without it and you also have a Shadow option button (which you might consider making into a switch so as to give feedback as to whether shadows are set on or off.)
HTH,