Join or
3d forums home Resources for 3d artists


MAYA: Linking parameters over time




3d Forum -> 3D Animation Talk Previous topic | Next topic
Shawn Posted: May 23, 2006   Post subject: MAYA: Linking parameters over time
3D forums Enthusiast


Joined: 12 Dec 2005
Posts: 84
Location: USA

Back to top
Reply
If i want to script pSphere1 so it at frame 21 has the translation values of pCube1 at frame 2... how could that look?
i want to automate the animation of several objects and all should be timeshifted from the first one
and with the offset as a variable
so i have to point at translation values at a certain frame

Ted Town Posted: May 23, 2006   Post subject:
3D forums Enthusiast


Joined: 10 Nov 2005
Posts: 75
Location: USA

Back to top
Reply
pseudocode: pSphere1.translation = pCube1.starttranslation*(thisframe-2)/19 + pSphere1.starttranslation*(21-thisframe)/19
just a basic tweening equation between two values, shifting the weighting factor over tie
time*


Shawn Posted: May 23, 2006   Post subject:
3D forums Enthusiast


Joined: 12 Dec 2005
Posts: 84
Location: USA

Back to top
Reply
oh
so "thisframe" is acctually a "variable" that wrks?
hmm
must test

Ted Town Posted: May 23, 2006   Post subject:
3D forums Enthusiast


Joined: 10 Nov 2005
Posts: 75
Location: USA

Back to top
Reply
of course not, its pseudocode

Shawn Posted: May 24, 2006   Post subject:
3D forums Enthusiast


Joined: 12 Dec 2005
Posts: 84
Location: USA

Back to top
Reply
pseudocode =)
heheh
didn't read it all

Ted Town Posted: May 25, 2006   Post subject:
3D forums Enthusiast


Joined: 10 Nov 2005
Posts: 75
Location: USA

Back to top
Reply
I suppose you could use a dummy object with a custom attribute to store an animation curve go get better control over how it moves between them over time aswell
go=to*

Shawn Posted: May 25, 2006   Post subject:
3D forums Enthusiast


Joined: 12 Dec 2005
Posts: 84
Location: USA

Back to top
Reply
there is acctually a timeFunction node in maya that trax uses
maybe something that one can use

Ted Town Posted: May 25, 2006   Post subject:
3D forums Enthusiast


Joined: 10 Nov 2005
Posts: 75
Location: USA

Back to top
Reply
Im sure there has to be a global variable like "frame" or something
but the code wont work if you plan to animate the objects manually as well. Then you'd have to query the position of the objects at every frame or make some other expression that will update the variables automatically when the position change
there's TONS of cool stuff you could do with this, hehe
procedural animation is awsome

Sponsor Posted: February 09, 2012   Post subject:
3d forum sponsor


Joined: 09 Aug 2010
Posts: 1

Back to top

Reply to topic    3d Forum -> 3D Animation Talk Previous topic | Next topic
Username:
Message body:
To Attach an Image to your post write the message then press the Go Advanced button. In the bottom of the advanced reply screen you will see an option to upload an image from your computer.

Confirmation code: Enter the code with CAPITAL LETTERS. There is no zero. Please add the result of 10-2*3= in front of the code.