MAYA: Linking parameters over time
| 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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
|
| Previous topic | Next topic |
3d artists |
3d jobs |
Free Textures |
Photo References |
3d Gallery |
3d Tutorials |
Post a Job offer |
FAQ
Powered by phpBB | hosted by Royal Web Hosting | CG archive | Privacy policy
Powered by phpBB | hosted by Royal Web Hosting | CG archive | Privacy policy


