Add noise to curves

Discussions about animating in SOFTIMAGE©
Post Reply
theboykidney
Posts: 38
Joined: 11 Jul 2012, 19:01

Add noise to curves

Post by theboykidney » 09 Jan 2013, 12:07

I have some animated objects which I'm going to plot to constant/step.
I then want to add some noise to each key.

a basic hack job I've done is this...

RandomizeParameters "sphere.kine.local.posx", 0.01, True
SaveKey "sphere.kine.local.posx", 1, , , , False
NextFrame

but don't know how to loop it or tell it how many frames/times to repeat.

Can anyone help or suggest a better way to do it?

cheers, TBK

User avatar
ace63
Posts: 176
Joined: 07 Jun 2009, 12:30

Re: Add noise to curves

Post by ace63 » 09 Jan 2013, 12:34

You could go ahead and add some noise to the position of the object in ICE easily - I've done this before and it works pretty well.
Use turbulence node and use the object position as the input and add that to the object position and set it back.

theboykidney
Posts: 38
Joined: 11 Jul 2012, 19:01

Re: Add noise to curves

Post by theboykidney » 09 Jan 2013, 13:15

problem is the parameters i need to add the noise to are part of a number of characters, so it would mean a lot of work going in and setting up the ICE tree on each object.
I'm after some kind of system where i can select all the objects i need to add noise to and quickly run some kind of script...

User avatar
csaez
Posts: 253
Joined: 09 Jul 2012, 15:31
Skype: csaezmargotta
Location: Sydney, Australia
Contact:

Re: Add noise to curves

Post by csaez » 09 Jan 2013, 13:29

You can easily script the ICE solution too, just make a compound (with an execute output) and run something like this :)

Code: Select all

COMPOUND = "Bend"
for oObj in Application.Selection:
    Application.ApplyICEOp(COMPOUND, oObj)

User avatar
ace63
Posts: 176
Joined: 07 Jun 2009, 12:30

Re: Add noise to curves

Post by ace63 » 09 Jan 2013, 18:13

This is a thing I have been wanting for so long - properly working with groups and settings data on multiple objects in a single ICETree - unfortunately thats not possible :(

luceric
Posts: 1251
Joined: 22 Jun 2009, 00:08

Re: Add noise to curves

Post by luceric » 09 Jan 2013, 20:48

In VBScript?

Code: Select all

set MyObject = GetValue("sphere.kine.local")
set fcurve = MyObject.Parameters("posy").Source

fcurve.BeginEdit
for i = 0 to fcurve.GetNumKeys()-1
  fcurve.keys(i).Time =  fcurve.keys(i).Time + (rnd(i)*0.1)
  fcurve.keys(i).value = fcurve.keys(i).value +(rnd(i)*0.1)
next
fcurve.EndEdit

User avatar
mattmos
Posts: 445
Joined: 02 Dec 2009, 16:59

Re: Add noise to curves

Post by mattmos » 09 Jan 2013, 22:21

I'd love to see a noise function in the animation editor again, there used to be a great plugin that allowed a number of different ways of adding noise via a menu in there, but I don't think it ever got compiled for 64-bit...

Edit: Not the one I was thinking of but this looks handy - haven't tested but noise function adds an animation layer of noise to a curve.

http://www.ozadi.com/scripts/FCurveTool ... Plugin.htm

User avatar
Tekano
Posts: 488
Joined: 09 Jun 2009, 14:49
Location: London, UK

Re: Add noise to curves

Post by Tekano » 10 Jan 2013, 15:07

this is where relative value math operators that can be used in the transform panel would be VERY handy if they were also available in the animation editor keyframe value panel

eg using l or L(min, max) ,r(x) &r(min, max) + to alter all selected keyframes on all selected fcurves
Gossip is what no one claims to like, but everybody enjoys.

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests