Home Page › forums › fx Art and Technique › Expressions for VFX › random value… hold it for duration
- This topic has 1 reply, 2 voices, and was last updated 13 years, 11 months ago by jack05282 sparrow.
-
AuthorPosts
-
November 14, 2006 at 5:47 pm #201312CrumbsChiefParticipant
I’m new to flame expressions and i have a quick question.
I’m trying to assign a random value to a channel, but i want to hold that random value for the duration of the clip. In other words… pick a random value for frame 1 and hold it.
If i use “rand” or “truerand” it gives a random value to each frame in that channel. Could I generate random numbers in a dummy axis and then just pull from it the value at one random frame?
November 14, 2006 at 8:27 pm #214463jack05282 sparrowParticipantHi CrumbsChief,
Not sure exacly the context, but maybe this will help you…
you need 3 axis
You take your axis01 and apply your rand function to it (lets say rand(frame)*10 – This will give you a random value between -10 and 10
you have your axis02 where you use this on your xposition channel :
eval(axis01.position.x , axis03.position.x)
– This will extract a certain value from your axis01 position.x at a spacific frame, the frame will be specified by the value of axis03 postion.xand you have your axis03 where you change your position x value to get a random value
So… ; ) by changing the x position value of axis03, you give a randon value to axis02 x position, and the value stays the same for the whole sequence.
Maybe there is a much easier way to do this but I hope this will help or inspire you !
good luck
-
AuthorPosts
- You must be logged in to reply to this topic.
