Data block outside of a node

Data block outside of a node

Anonymous
Not applicable
391 Views
1 Reply
Message 1 of 2

Data block outside of a node

Anonymous
Not applicable

Hello,

 

in the compute callback of a node you have access to the data block (for example mesh data). I want to write a command which does access data blocks for different nodes to evaluate mesh data (normals and so on). Is this possible in Maya Api?

 

Of course there are mel commands which can access all data like normals, vertex, faces. But they access only the data from the last mesh node in the Dependency Graph. Is there a possibility to access normals, vertex and faces from other nodes of the Dependency Graph in the context of a command? Thanks in advance.

0 Likes
392 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

Perhaps you can use the MPlug.getValue() function for this case? Has someone experience, how you can extract the faces, edges  and normals from the return value of getValue()?

0 Likes