Beer glass scene creation
This course contains a little bit of everything with modeling, UVing, texturing and dynamics in Maya, as well as compositing multilayered EXR's in Photoshop.
# 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)
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