PDA

View Full Version : addcontrol() missing?


Phil
09-20-2006, 02:41 PM
I have a 3rd party LScript here in .ls format. I have no idea of the origin of it, but it's failing to run under LW9 Modeler. The first error reported is that the following line is incorrect :

var c1 = addcontrol(gridsize,"Grid size:");

Indeed, in Dodgy's LScript notes, I couldn't locate addcontrol() so I assume it has been replaced by something else. Whilst I attempt to dig through the LScript notes, I'm wondering if anyone could point me at a conversion guide for obsolete -> current commands

Alternatively, is there some magic invocation available for legacy support?

Thanks :)

Phil.

Dodgy
09-20-2006, 03:19 PM
That script is probably pre LW5...

You could use:

var c1=ctldistance("Grid size:",1.0);

or any of the other numeric ctl functions. Look under control commands to get a full list.

Phil
09-20-2006, 04:27 PM
Hmmm. I suspect it is 6.0-era code, possibly 5.6. The script itself seems simple and it may simply be easier to rewrite it than try to update it.

It will have to wait, though. I'm going to try and customise Maestro for muscle bone setups first ;D I just wish it would work with Relativity's expressions - LW's own syntax is....painfully unfamiliar.