Maya 2020 fundamentals - modelling the real world
Get halfway through a model and find it's an unworkable mess? Can't add edge loops where you need them? Can't subdivide a mesh properly? If any of this sounds familiar check this course out.
# 1 29-01-2014 , 10:59 PM
goggles's Avatar
Registered User
Join Date: Sep 2011
Posts: 219

Selection Higlighting shelf button error

I am trying to put this script into my shelf. Is this script working? If so how can i add it? From the script editor or in the command tab in shelf editor? I saved the script from the script editor into the folder as SH. and esited the line in command tab in shelf editor as source SH;

I get cannot find file SH for source statement error now....

# Toggle Selection Hilite
import maya.cmds as cmds
perspPanel = cmds.getPanel( withLabel='Persp View')
if (cmds.modelEditor( perspPanel, query=1, sel=1)) == 1:
cmds.modelEditor( perspPanel, edit=True, sel=0)
else:
cmds.modelEditor( perspPanel, edit=True, sel=1)

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads