Advertisement
jedypod

Random Number Gizmo

Dec 24th, 2012
1,328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. set cut_paste_input [stack 0]
  2. push $cut_paste_input
  3. NoOp {
  4. name RandNum
  5. selected true
  6. xpos 299
  7. ypos -61
  8. addUserKnob {20 RandNum}
  9. addUserKnob {7 seed t "Seed value for random number." R 0 100000}
  10. addUserKnob {7 frequency t "# of oscillations per frame." R 0 10}
  11. frequency 1
  12. addUserKnob {7 amplitude t "range of the random values" R 0 10}
  13. amplitude 1
  14. addUserKnob {7 offset t "amount to offset the random values. " R -5 5}
  15. offset 0.5
  16. addUserKnob {26 unnamed l "" +STARTLINE}
  17. addUserKnob {7 random_value t "this is the random value to link to"}
  18. random_value {{(random(seed,frame*frequency)*amplitude)+offset}}
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement