Hamburger
08-16-2012, 12:16 AM
:)
I'm attempting to modify LevelTools by adding a right click option "Edit in new instance of Maya" command but I'm running into syntax errors galore.
This is what I have so far which works (but Maya doesn't open the file because I'm missing the filename and extension):
string $reference = ("system(\"start \\\"\" + getenv(\"MAYA_LOCATION\") + \"/bin/maya.exe\\\" \\\"\+$propFolder+\\\"\");");
I need to add this code (which generates filename.extension):
"\" + $name[0] + "\" + $name[1]
Anyone know where to start? :banghead:
I'm attempting to modify LevelTools by adding a right click option "Edit in new instance of Maya" command but I'm running into syntax errors galore.
This is what I have so far which works (but Maya doesn't open the file because I'm missing the filename and extension):
string $reference = ("system(\"start \\\"\" + getenv(\"MAYA_LOCATION\") + \"/bin/maya.exe\\\" \\\"\+$propFolder+\\\"\");");
I need to add this code (which generates filename.extension):
"\" + $name[0] + "\" + $name[1]
Anyone know where to start? :banghead:
