View Full Version : Scaling light decay

11 November 2006, 07:29 PM
I am currently trying to setup a light so that it will scale with the size of my character... I am using an anim curve tied together with a light info node to get a decay... and now I am trying to make it scalable (if possible).

So I am entering in an expression and getting an error that I don't quite understand

expression -s "ltShape.intensity = ltShape_intensity.output * ltShape.curScale ^ 2\r" -o lt -n "tst" -ae 1 -uc all ;
// Error: ; //
// Error: Illegal operation "^" on data of type float. //

11 November 2006, 04:11 AM
It means it doesn't know what "^" is.
Try using the pow function instead.

expression -s "ltShape.intensity = ltShape_intensity.output * `pow ltShape.curScale (2\r)`" -o lt -n "tst" -ae 1 -uc all ;

CGTalk Moderation
11 November 2006, 04:11 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.