hi everyone,
where and how to use the small functions like wiggle/rotate (infinitely) etc in nuke?
i would appreciate if comeone could guide me to some resources.
thanks
m.
|
|
hi everyone,
where and how to use the small functions like wiggle/rotate (infinitely) etc in nuke?
i would appreciate if comeone could guide me to some resources.
thanks
m.
what you're looking for is cameraShake (Transform -> CameraShake)
hi kosmogos,
thanks for answering..however i am not exactly looking for the camerashake node, rather i am looking for something that i can apply to the individual transform/transform geo node, so its keeps wiggling randomly.
thanks
m.
try this,
just press Noise button in User tab
set cut_paste_input [stack 0]
version 6.3 v4
push $cut_paste_input
Axis {
name Axis2
selected true
xpos 22
ypos 30
addUserKnob {20 User}
addUserKnob {22 Noise -STARTLINE T "n=nuke.selectedNode()\nn\[\"translate\"].setExpression(\"curve+fBm(frame*xfrequency,10.5,1 1.5,xoctaves,2,.5)*xamplitude\",0)\nn\[\"translate\"].setExpression(\"curve+fBm(frame*yfrequency,10.5,1 1.5,yoctaves,2,.5)*yamplitude\",1)\nn\[\"translate\"].setExpression(\"curve+fBm(frame*zfrequency,10.5,1 1.5,zoctaves,2,.5)*zamplitude\",2)"}
addUserKnob {26 X_Noise}
addUserKnob {7 xfrequency l frequency}
addUserKnob {7 xamplitude l amplitude}
addUserKnob {7 xoctaves l octaves}
addUserKnob {26 Y_Noise}
addUserKnob {7 yfrequency l frequency}
addUserKnob {7 yamplitude l amplitude}
addUserKnob {7 yoctaves l octaves}
addUserKnob {26 Z_Noise}
addUserKnob {7 zfrequency l frequency}
addUserKnob {7 zamplitude l amplitude}
addUserKnob {7 zoctaves l octaves}
}
Cant camerashake node be used on transforms too? Also there's the random() expression, that you can put onto your individual transforms.
use random() function :
((random(frame/A))-.5)*B
A: value to control how fast/slow the wiggle is. Bigger value-> slower
B: value to affect how strong the wiggle is. Bigger->stronger
That will generate random/wiggle value between (-B/2) to (B/2)
example : ((random(frame/3))-.5)*2 will generate random value between -1 to 1.
The value of 3 control the wiggle's speed, the value of 2 control the strength.
So all you need to do is changing the variable A and B.
example2: ((random(frame/30)-.5)*2 , similar but i change the value of 3 become 30, this will generate wiggle which is 10x slower now.
use in any number field in nuke's node, example : put in transform node-> translate.x
if u want to keep the current anim curve (if u already an animation keyframe), add 'curve +' in the beginnig of the expr ->
try put this : curve+((random(frame/2))-.5)*40 , as soon as u apply this expr, u can see in the viewer or curve editor , the animation path will wiggle.
u can apply this expr not to transform node, u can use to any node, example to color so changing the color randomly. The point is set the value to B to create proper/correct maximum and minimum value.
u can modify as u like , more complex expr : curve+((random(frame))-.5)*600*(frame<=50?pow(clamp(frame/50),2):clamp(1-((frame-50)/50)))
That will generate wiggle start from no wiggle, then slowly increase strength till in frame 50 it got the maximum wiggle value, then after that slowly the wiggle start to fade out.
You can also get similar result by multiplying it to other node's value, example : add another transform node, add this expr: sin(frame/30). Multiplying both field will got the same fade in out effect.
u can also use noise() function, read the documentation. If you don't want to do scripting, go to nukepedia.com or creativecrash , hopefully u can find some ready to use gizmo. Anyway .. do a little scripting won't hurt ...
cheers.
Last edited by metaclay; April 2nd, 2012 at 08:00 AM.
inrange(frame,20,50)*random(frame/x)*y
I used this one, but Metaclay has better solution
I recently wrote a simple tutorial about how you could animate the random() function: http://conradolson.com/a-simple-nuke-expression-example
| « Previous Thread | Next Thread » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |