Community
Arnold for Cinema 4D Forum
Rendering with Arnold in CINEMA 4D using the C4DtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Import Matrix User Data from C4D

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Shawn_Kearney1
293 Views, 3 Replies

Import Matrix User Data from C4D

Is there any way to import a matrix from c4d user data directly? I can import vectors (or floats) and then recompose the matrix in arnold, but that seems a little wonky.

I want to translate a vector (the world shading position) to orientation of another object.

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

I'm not sure I understand your need. Altering the transformation of an object is not possible from a shading context. What would you like to achieve exactly?

Message 3 of 4

I'm trying to go the other direction, I want to transform a vector within a shader using the matrix of another object. I was trying to hack together a solution for the cloner effector to work.

Though, I recently learned about the display_color attribute so that mograph effector's color channel can be applied within arnold shaders, so this particular issue is moot. But while we're on the topic, are there any other reserved/global user data attributes? I don't remember reading about this feature in the documentation.

Message 4 of 4

Well, we have removed the matrix type shaders in Arnold 5, but you can write a custom one in c++ to multiply a vector and a matrix.

To answer the other question, the display_color is the only custom attribute at the moment.

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

Post to forums  

Autodesk Design & Make Report