Ok, so I know I am being borderline retarded but I can't figure this
out. I am trying to source a Python script I wrote into a button on my
shelf. Anyone have any experience with this? The shelf loader script
has all mel scripts that are sourcing and I was hoping to sneak a
python one in there. Since this shelf loader is a mel script what would
I have to do to get it to read my python script? If you can't tell I am
new to python. Any help would be greatly appreciated!!
Something like this:
shelfButton
-enableCommandRepeat 1
-enable 1
-width 34
-height 34
-manage 1
-visible 1
-preventOverride 0
-align "center"
-label "Blah Blah"
-labelOffset 0
-font "tinyBoldLabelFont"
-image ("/icon\_path/icon.xpm")
-image1 ("/icon\_path/icon.xpm")
-style "iconOnly"
-marginWidth 1
-marginHeight 1
-command "import /cg/common/maya/scripts/pythonScript.py"
-sourceType "python"
-actionIsSubstitute 0
;