Thread: how to use the AE equivalent "wiggle" function

Reply to Thread
Results 1 to 8 of 8
  1. #1 how to use the AE equivalent "wiggle" function 
    Join Date
    Mar 2010
    Location
    krakow
    Posts
    32
    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.
    Reply With Quote  

  2. #2  
    Join Date
    Oct 2011
    Posts
    8
    what you're looking for is cameraShake (Transform -> CameraShake)
    Reply With Quote  

  3. #3  
    Join Date
    Mar 2010
    Location
    krakow
    Posts
    32
    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.
    Reply With Quote  

  4. #4  
    Join Date
    Jul 2007
    Location
    Munich. Germany
    Posts
    222
    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}
    }
    Reply With Quote  

  5. #5  
    Join Date
    Oct 2011
    Location
    Bangkok, Thailand
    Posts
    88
    Cant camerashake node be used on transforms too? Also there's the random() expression, that you can put onto your individual transforms.
    Whatever i type, take it with a pinch of salt...
    Reply With Quote  

  6. #6  
    Join Date
    Oct 2008
    Posts
    334

    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.
    Reply With Quote  

  7. #7  
    Join Date
    Dec 2011
    Posts
    13
    inrange(frame,20,50)*random(frame/x)*y
    I used this one, but Metaclay has better solution
    Reply With Quote  

  8. #8  
    Join Date
    Nov 2009
    Location
    Vancouver
    Posts
    474
    I recently wrote a simple tutorial about how you could animate the random() function: http://conradolson.com/a-simple-nuke-expression-example
    Reply With Quote  

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Replies: 0
    Last Post: November 16th, 2010, 06:09 AM
  2. Replies: 0
    Last Post: November 16th, 2010, 05:58 AM
  3. Question - "etc"... Update to: Function Sub Menus
    By shaneholloman in forum NUKE from The Foundry
    Replies: 2
    Last Post: March 3rd, 2009, 08:02 PM
  4. Replies: 0
    Last Post: November 7th, 2006, 01:09 PM
  5. Replies: 0
    Last Post: February 19th, 2003, 02:39 PM
Bookmarks
Bookmarks
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts