revilo3D
03-17-2009, 02:12 PM
hey guys, probably quite a simple one I can't seem to figure out.
Wrote a toolset about 2 years ago now... and recently fired it back up... however the import file mel seems to be not working. I have a scene file in the same location as the toolset script, which is defined by a module file. I want this to freely work across machines so relative path is a must. Here is the script as it was... now it just says "file not found"
file -import -type "mayaBinary" -ra true -namespace "Shot1" -options "v=0;p=17" "camToolsRig.mb";
I figured it worked in the past by having it defined in the module file specifically - letting it find the file named camToolsRig.mb. However this does not seem to work now. How do I build a string pointing to that directory - and does the use of the module complicate the matter?
Suggestions?
PS. This is the absolute path that works fine...
file -import -type "mayaBinary" -ra true -namespace "Shot1" -options "v=0;p=17" "C:/Documents and Settings/ohilbert/My Documents/maya/2009-x64/packs/camTools/scripts/camToolsRig.mb";
Wrote a toolset about 2 years ago now... and recently fired it back up... however the import file mel seems to be not working. I have a scene file in the same location as the toolset script, which is defined by a module file. I want this to freely work across machines so relative path is a must. Here is the script as it was... now it just says "file not found"
file -import -type "mayaBinary" -ra true -namespace "Shot1" -options "v=0;p=17" "camToolsRig.mb";
I figured it worked in the past by having it defined in the module file specifically - letting it find the file named camToolsRig.mb. However this does not seem to work now. How do I build a string pointing to that directory - and does the use of the module complicate the matter?
Suggestions?
PS. This is the absolute path that works fine...
file -import -type "mayaBinary" -ra true -namespace "Shot1" -options "v=0;p=17" "C:/Documents and Settings/ohilbert/My Documents/maya/2009-x64/packs/camTools/scripts/camToolsRig.mb";
