Community
Arnold General Rendering Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to embed motion keys in matrix?

2 REPLIES 2
Reply
Message 1 of 3
AaronWPowell
200 Views, 2 Replies

How to embed motion keys in matrix?

I'm trying to implement motion blur with the Arnold API and running into a wall. I've figured out I need to add motion keys to the transform matrix for transformation blur and motion keys to the vlist and nlist arrays for deformation blur, but it's not clear in the documentation how to do so assuming I have the transformation data I need.

Essentially, how do I add this info to an AtMatrix or AtArray?

Tags (2)
Labels (2)
2 REPLIES 2
Message 2 of 3

Here's some pseudocode for it:

AtMatrix matrix; 
AtArray* matrices = AiArrayAllocate(1, GetNumMotionSteps(), AI_TYPE_MATRIX);
for each motion step:
    AiArraySetMtx(matrices, GetMotionStep(), matrix);
AiNodeSetArray(node, "matrix", matrices);






// Stephen Blair
// Arnold Renderer Support
Message 3 of 3
AaronWPowell
in reply to: AaronWPowell

Fantastic, this looks easy enough. I'll give it a go. Thanks!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report