PDA

View Full Version : animating pivot points


Jacobo
08-02-2003, 04:01 PM
Hi there;

I'm trying to animate a rolling cubical object and need to animate the pivot point. Can anyone tell me what the acceptable techniques in getting that done in XSI are?

thanx in advance

aj

marci2001
08-04-2003, 08:16 AM
I would constrain the object to a null (or simply parent) and did all the transformations to the null, meanwhile animating the constrain parameters the get the effects, you want.

I'm afraid, animating a pivot point could probably hurt the geometry in some special circumstances.

Best regards

M

Jacobo
08-04-2003, 08:01 PM
thanx, This is sort of what I did, but I was wondering if there was a direct solution :) But thanx anyways...

later

aj

ggg
08-05-2003, 05:53 AM
Not an answer to yiur null question but a way to do rolling cube.

Animating a Cube Rolling in XSI:
-Get an implicit grid
-get cube,
-constrain cube to bounding plane to the grid
-move the cube onto the bounding plane
-key cube translation there and move ahead in time, move cube forward, and key same Y height again(you'l likley wan to come back here to add keys to the translation forward to match timing of roll so no sliding)
-then key rotation at start move ahead, rotate some more, key

commands below minus extra translation keys forward

GetPrim "Grid"
Scale , 4.80973451327434, 4.80973451327434, 4.80973451327434, siRelative, siLocal, siObj, siXYZ
CreatePrim "Cube", "MeshSurface"
Translate , -1.00031110704435, 5.37926895048619, 0, siRelative, siView, siObj, siXYZ
ApplyCns "BoundingPlane", "cube", "grid"
Translate , -0.18755833257082, -4.31592508818078, 0, siRelative, siView, siObj, siXYZ
SaveKey "cube.kine.local.posx,cube.kine.local.posy,cube.kine.local.posz", 1
SetValue "PlayControl.Key", 20
SetValue "PlayControl.Current", 20
Translate , 30, -4.31592508818078, 0, siRelative, siView, siObj, siXYZ
SaveKey "cube.kine.local.posx,cube.kine.local.posy,cube.kine.local.posz", 20
SetValue "PlayControl.Key", 1
SetValue "PlayControl.Current", 1
SaveKey "cube.kine.local.rotx,cube.kine.local.roty,cube.kine.local.rotz", 1
SetValue "PlayControl.Key", 20
SetValue "PlayControl.Current", 20
Rotate , 0, 0, -374.4, siRelative, siAdd, siObj, siXYZ
SaveKey "cube.kine.local.rotx,cube.kine.local.roty,cube.kine.local.rotz", 20
SetValue "PlayControl.Key", 1
SetValue "PlayControl.Current", 1

CGTalk Moderation
01-15-2006, 07: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.