Notifications
Clear all

[Closed] randomize ranges in trackview

CAN’T SEND IMAGE-WEBLIMIT IS TOO CHEAP!
In the keyframer there are 6 dummies with random
entries for see, frequency, and triplrt strength parameters.
However, you see the ranges all start at -300 (as intended)
as this is well before the start of the animation (frame 0)
and extend to frame 1800 which is well past the end of the test scene
(which ends at frame 300).

                                         Is there a script or a utility that will allow me to select my dummies
                    and apply an offset of say +-100 frames, to make random stuff even more
                    random?                     

                                         Thanks
6 Replies

This might help. If you have multiple objects a loop would make this pretty simple.


a = [-100,-100,-100]--create a variable and store the xyz values of -100 
b = [100,100,100]--create b variable a and store the xyz values of 100 
randomPos = (random a b)--create a variable named randomPos and store a random value between a and b in it 
randomRot = angleAxis 90 (random a b)--create a variable named randomRot and store a random value between a and b in it using rotational values 90 degrees 
fn randimizePositon Obj = --create of function to change the position to a random position 
( 
Obj.position = randomPos Obj.rotation = randomRot 
) 
randimizePositon $ --run the function

Edit: Sorry I must have read this wrong I thought you wanted random positions.

could you make your question a little clearer?

i’ve seen your question on Autodesk Area… without the picture no one can puzzle out what you meant in your question.
if you want to get an answer try to ask it again…

1 Reply
(@avolution)
Joined: 10 months ago

Posts: 0

The image is 800k, and this forum onlya accepts 100k images, if i knew how to delete this message i would!

if you want to randomly shift all keys of a controller:


 movekeys <controller> (random min_shift max_shift)
 

if you want to randomly shift every key of a controller:


 for k=1 to numKeys <controller> do movekey <controller> k (random min_shift max_shift)
 

if you don’t need an answer don’t ask…

1 Reply
(@avolution)
Joined: 10 months ago

Posts: 0

thanks, and I did need an answer, I just couldn’t paste an image that was 800k