Autodesk Maya does not know how to create matrix input when creating plug-in nodes.

Asked 2 years ago, Updated 2 years ago, 43 views

I am currently creating a plug-in node for Maya by referring to the article here, which is similar to the one in this 129-140 line

MFnNAIns_input_offset.create('offset_x', 'ox', om.MFnNumericData.kFloat, default_value)

I would like to create both input and output of the matrix and quota nions as well as .
However, as far as the here references are read, only the float value is included as an initial value, and python python3


2022-09-30 21:35

1 Answers

Self-resolved.

For the matrix, eMFnMatrixAttribute 「 instead of nMFnNumericAttribute 」 was present.

For quota nions, when I checked the attributes of an existing node (check Tips by cursor), it said TDataCompound and the contents were Float values, so apparently there were no attributes dedicated to quota nions, but they were pseudo-expressed with four Float values.

Therefore, regarding quota nions, we were able to use here articles to create similar nodes using MFnCompoundAttribute and MFnNumericAttribute.


2022-09-30 21:35

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.