Thread: random numbers with difference values in each instance of a node?

Reply to Thread
Results 1 to 2 of 2
  1. #1 random numbers with difference values in each instance of a node? 
    Join Date
    Jul 2011
    Posts
    12
    Hi, I need to generate random numbers where the values are different in each instance of a node. I also need to be able to make the values only change at a specified frequency... I would normally use
    random (int(frame/frequency))

    but the problem with this is that each instance of the node uses the same frame for its seed, so it gets the same value. I feel like ther e must be an easy way to do this...

    Thanks in Advance!

    best-
    -Nat
    Reply With Quote  

  2. #2  
    Join Date
    Jun 2011
    Location
    Netherlands
    Posts
    11
    I don't think it is possible with instances, but you could probably make one ''master node'' where you tweak your settings, then make ''instances'' of that node by linking all the knobs with expressions. Then for the random value, you could use something like (amplitude*random(frame*frequency+seed)+offset-(0.5*amplitude)) then for the seed use the number of the node's name which should be different for each node. (you can get it by using the "split" and "lindex" functions to extract the number from the node's name)

    Hope this helps.
    Team-O vfx
    http://www.team-o-vfx.com
    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. Expression for random values ?
    By acestar_256 in forum NUKE from The Foundry
    Replies: 4
    Last Post: November 18th, 2011, 07:18 AM
  2. Need Expression: Random between 3 values
    By Seriphu in forum NUKE from The Foundry
    Replies: 2
    Last Post: November 16th, 2011, 03:10 PM
  3. creating random values over time
    By commanderlock in forum NUKE from The Foundry
    Replies: 3
    Last Post: October 6th, 2010, 07:14 PM
  4. Replies: 4
    Last Post: April 30th, 2010, 01:10 PM
  5. Paint Node Fractional Numbers?
    By Vinteg in forum NUKE from The Foundry
    Replies: 0
    Last Post: December 18th, 2007, 03:02 PM
Tags for this Thread

View Tag Cloud

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