tcl
Mirroring animation timing using tcl
To mirror your animation curves, you can use some simple expressions. Let’s say you animated an object from frame 0-50, and now you want to mirror it to frame 51-100.
Just write the following in your specific knob:
1 |
curve(frame >= 50 ? 50-(frame-50): frame) |
This uses the command:
1 |
curve(x) |
which will hold the animation on frame x. So what the above example does, it checks if the current frame is 50 or above. If this is true, it frameholds 50-(frame-50), which at frame 52 for example is …
1 2 3 |
50-(52-50) 50-2 48 |
So on frame 52, it frameholds frame 48. If the frame is under 50, is just gives you your current animated value.
This is pretty useful for creating walk-arounds or anything symmetrical, when you’re too lazy to animate everything. :-)
Creating Procedural Textures via UV-Map with Expression-Node
To create cool procedural textures in nuke, there is a pretty simple way to do that, all you need is an input image, a STMap-node and an Expression-node. (more…)