PDA

View Full Version : Geting transform matrix at time x?


Gibbz
01-12-2009, 12:55 AM
Im trying to get the transform of my object at certain times along the animation. Im trying to use the following code


mWorldMatrix = (mCamera.transform at time 1)


However this works fine in the console, but in my script it errors saying


-- Syntax error: at ), expected <factor>
-- In line: mWorldMatrix = (mCamera.transform at time 1)


and if i dont use the brakets it works, but it only get the transform, and ignores the at time 1 part :(

ZeBoxx2
01-12-2009, 01:24 AM
'at time' is a context... so you'd want to run the commands that you want to run within the context of 'at time' as:


at time N (
<stuff>
)

Gibbz
01-12-2009, 06:43 AM
ok cheers, ill give this a shot :)

CGTalk Moderation
01-12-2009, 06:43 AM
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.