PDA

View Full Version : How to Control The Nurbs Curves Visibilty


Shady3D
08-30-2008, 04:20 PM
hi all,

i wanted to make a simple MEL script that do simply the following

1.hide nurbs curves
2.run playblast
3.show nurbs curves again

i made this script but by just controlling the visibility of the curves but i need to make this script usable, so i want to make MEL to go in the active viewport and do this ( Show --> NURBS Curves ), so looked for all this and i found it but it doesn't work so here is the code.

modelEditor -e -nc 1 modelPanel4;

so plz tell me what should i do

jaydru
08-30-2008, 05:10 PM
try this, it should work but may not as im quite new to mel, let me know either way :)

string $currentPanel = `getPanel -wf`;
modelEditor -e -nurbsCurves 0 $currentPanel;
performPlayblast 3;
modelEditor -e -nurbsCurves 1 $currentPanel;

Shady3D
08-30-2008, 05:22 PM
thx a lot it worked

CGTalk Moderation
08-30-2008, 05:22 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.