PDA

View Full Version : sequential movements with SDK?


JasonA
08-03-2003, 10:54 PM
Hi folks,

I'm trying to set up a set driven key slider to control the motion and rotation of an object. The catch is that I want it to happen sequentially using only one slider. Can this be done and how do I set it up?

for the sake of the example, I want a cube to move 5 increments in x and THEN rotate 180 degrees on it's y axis. Can I set this up on one set driven key slider? The problem I'm having is that both transforms are occuring at the same time which is really what I don't want. (I'd rather not have to create two different sliders and manually animate that behavior but I know that could be a work around...)

thanks for any help

jHromika
08-03-2003, 11:35 PM
You can edit the keys set by SDK within the graph editor. Either select the transformed node or the node with the attribute added to it (I can't remember which I'm afraid) and then open up the graph editor. Just shift the initial key for the second transform over to frame x then.

I'm sorry this was more of a "you can do it this way" and not a "how to do it this way" post, but I'm feeling pretty fried right now and still have plenty to do :( Hopefully that's enough to get you there, otherwise I can take a closer look later.

Good luck :)

JasonA
08-04-2003, 12:16 AM
of course, dang it thats so simple :beer: right on, I'll give it a try in a bit, but that makes complete sense.... I forgot about those keys being editable. Thansk for the reply!

Electrofirma
08-04-2003, 12:19 AM
1. Create your attribute and key both your X translation an Y rotation to it at 0.
2. Increase the attribute to .5, and the X translate to 5. Again, key both the X translate and Y rotation to the attribute.
3. Increase the attribute to 1 and the Y rotation to 180. Now key the Y rotation to the attribute.
4. You'll probably want to go into the graph editor and break tangencies so the motions are better isolated, and the transition between moving and rotating is more clearly defined.

Electrofirma
08-04-2003, 12:35 AM
Here's a little playblast...

JasonA
08-04-2003, 12:43 AM
coolness, hey thats even better :) thanks to both of you for responding so quick!

Electrofirma
08-04-2003, 01:24 AM
I got to playing further...
Before I said start by keying the x trans and y rot. I was wrong.

There is no need to key the y rot until you are ready for the rotation to begin.

so...

attr=0.0 key: x trans=0
attr=0.5 key: x trans=5, y rot=0
attr=1.0 key: y rot=180

This is better because it creates only single segments in the graph, so you don't have to mess with tangencies.

This is good stuff. Thanx for bringing it up, as I'm rather new to it myself :)

CGTalk Moderation
01-15-2006, 06:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.