Notifications
Clear all

[Closed] Geting transform matrix at time x?

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

2 Replies

‘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>
)

ok cheers, ill give this a shot