How to hide array element attributes in Maya API?

178 views
Skip to first unread message

Emre Tekinalp

unread,
Jun 26, 2015, 8:36:07 PM6/26/15
to python_in...@googlegroups.com
Hello guys,

I do have a quite simple question.
How am I able to hide a child attribute of an array attribute via Maya API?

Setup:
I have created an input array compound attribute (setArray(true) c++).
Inside this input you have one numeric attribute and two matrix attributes.
I don't want to see the matrix attributes, just the numeric one.

When using the command setHidden(true) on each child matrix attribute,
it is still visible. I searched the google groups but couldn't find any results.

I can provide code if needed.
Thanks in advance!

Cheerio
Emre

Janos Hunyadi

unread,
Jun 30, 2015, 11:50:02 AM6/30/15
to python_in...@googlegroups.com
Mmm. Where, in the attribute editor, or the node editor?
J

Emre Tekinalp

unread,
Jun 30, 2015, 1:11:27 PM6/30/15
to python_in...@googlegroups.com
Hello Janos,

I would like to hide it in the attribute editor.
I got a hint yesterday to make it happen in the AE template file.
It will be eventually a bit tricky but I will check it out.

Once figured out, I will post the solution.

Thanks
Emre

Janos Hunyadi

unread,
Jul 2, 2015, 6:35:46 AM7/2/15
to python_in...@googlegroups.com
For that, yeah its the AE template. You have to use the suppress flag in your file:

editorTemplate -suppress "yourAttributeName";

J.
Reply all
Reply to author
Forward
0 new messages