Nov
24
Is it possible to write an expression that adjusts a mix value based off of transform
Posted in: NUKE from The FoundryHey guys,
So I have a glowing object that scrolls from left to right. During that, I have an interactive light layer turn on and off as the object passes. So for instance:
x = 0
mix = 0
x = 100
mix = 1
x = 200
mix = 0
I will be animating the transform, but I don’t want to animate the mix. Is it possible to create an expression for the mix value that animates as the transform.x animates?
I have an idea:
In mix value:
Transform1.translate.x/100
This works for turning on the layer, but how do I work in turning it off at 200?
Thanks,
Andrew
Post a Comment