there is an integrated runtime mel command toggleOutliner; ;)
@Brandontroll7 жыл бұрын
Hey I'm using maya 2016 and am really new to scripting, I want to create a single button that toggles between mesh visibility and mesh + nurbs curves visibility (for animation purposes) I have two separate buttons for each right now simply running respectively: modelEditor -e -allObjects 0 modelPanel4; modelEditor -e -polymeshes true modelPanel4; modelEditor -e -allObjects 0 modelPanel4; modelEditor -e -polymeshes true modelPanel4; modelEditor -e -nurbsSurfaces true modelPanel4; modelEditor -e -nurbsCurves true modelPanel4; I would like to combine them into one button that toggles one or the other like in your toggle booleans video but I'm struggling with the syntax. Thanks for the videos!
@themisterjordan6 жыл бұрын
Question: I noticed the window name for the HyperGraph is "hyperGraphPanel2Window" and the Outliner is called "outlinerPanel1Window". Are the "1" and "2" like that because you opened the Outliner first and the HyperGraph second? If so, is there another variable that can make a more reliable reference to those windows? For example, if you opened the HyperGraph first, your variable would probably be "hyperGraphPanel1Window". So, in essence, your save shelf script would be busted if you open the windows out of order. Anyway, thank you for the video! Appreciate it as a supplement to your write up!