random value… hold it for duration

Home Page forums fx Art and Technique Expressions for VFX random value… hold it for duration

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #201312
    CrumbsChief
    Participant

    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?

    #214463
    jack05282 sparrow
    Participant

    Hi 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.x

    and 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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Copy link
Powered by Social Snap