Blue Bird
08-26-2003, 03:26 PM
Let me start by admitting that I¡¯m an absolute beginner to MEL (however I do have a bit of experience in C). So naturally when I¡¯m stuck the first thing I do is read and then reread the relevant help files, but I still found the description for modelEditor confusing.
modelEditor [flags] [editorName]
-wos/wireframeOnShaded boolean
Sets whether the model panel will draw the wireframe on all shaded objects (if true) or only for active objects (if false).
I¡¯m interested in the last part where it says only for active objects (if false), but a MEL command such as modelEditor -e -wos 0 modelPanel4; (note the boolean 0 after -wos) will turn off wireframe on shaded for all objects in modelPanel4. So I¡¯m wondering how to use modelEditor properly so I can toggle wireframe on shaded on and off on a per object basis.
I¡¯ll be really appreciated if you can help. Thankx!
Blue Bird
P.S. I¡¯m doing this because I found toggling x ray and wireframe on shaded on and off on a per object basis is far more useful than toggling them on and off for all object (via Shading > Shading Options) while I¡¯m modelling, but the toggle scripts I found on Highend3D will not let me do it a per object basis. So I¡¯ve decided to get my feet wet in MEL and so far I¡¯ve already worked out a script for toggling x ray using displaySurface. Therefore it¡¯s just a matter of getting the wireframe to appear.
modelEditor [flags] [editorName]
-wos/wireframeOnShaded boolean
Sets whether the model panel will draw the wireframe on all shaded objects (if true) or only for active objects (if false).
I¡¯m interested in the last part where it says only for active objects (if false), but a MEL command such as modelEditor -e -wos 0 modelPanel4; (note the boolean 0 after -wos) will turn off wireframe on shaded for all objects in modelPanel4. So I¡¯m wondering how to use modelEditor properly so I can toggle wireframe on shaded on and off on a per object basis.
I¡¯ll be really appreciated if you can help. Thankx!
Blue Bird
P.S. I¡¯m doing this because I found toggling x ray and wireframe on shaded on and off on a per object basis is far more useful than toggling them on and off for all object (via Shading > Shading Options) while I¡¯m modelling, but the toggle scripts I found on Highend3D will not let me do it a per object basis. So I¡¯ve decided to get my feet wet in MEL and so far I¡¯ve already worked out a script for toggling x ray using displaySurface. Therefore it¡¯s just a matter of getting the wireframe to appear.
