what’s the command syntax to set attributes on mgear nodes?
for instance here, if I want to change the drivenRestMatrix values?
maya script editor just shows the command and node, but nothing about new value or syntax
what’s the command syntax to set attributes on mgear nodes?
for instance here, if I want to change the drivenRestMatrix values?
maya script editor just shows the command and node, but nothing about new value or syntax
This isn’t particular to mGear. The script editor always outputs pretty useless MEL commands that don’t reflect how you would run the command (MEL or Python) yourself. They make it hard to learn from the script editor.
The short answer is use the documentation (search about commands and the node type you are interested in) and seek out Maya Python training. My info might be out of date but Chris Zurbrigg has excellent courses. setAttr command
Although I know this is about the matrixContraint node and I don’t know if you’ll find docs on that. You can maybe find the individual attr names in the attributeEditor.
Thanks for quick reply @chrislesage
someone on the discord gave me the answers to set the matrix values. Help
I have to specify I’m entering a 4x4 matrix and format the values as such.
Sweet, I realize you were looking for a specific answer. Hope my general answer wasn’t condescending 