View Full Version : Double naming in save command
twidup 07-12-2003, 05:56 AM I am working on a small script for a friend to handle some reference swapping and saving out backup copies of the scene.
file -rn ("Scenes/Backups/"+$sceneName+".orig.mb");
file -s -typ "mayaBinary";
That is the part of the script that is causing problems.
When I run it, it saves out the scene as .orig.orig.mb
Any ideas why it is adding the .orig in twice?
-Todd
|
|
mark_wilkins
07-12-2003, 08:56 AM
Because $sceneName has .orig in it already for some reason?
galactor
07-12-2003, 08:33 PM
if $sceneName is an array, you should clear it before those two lines.
:: Galactor ::
twidup
07-13-2003, 12:47 AM
nope and nope. But those are 2 things that I should be checking.
$sceneName is a tokenized string. I did manage to track it down shortly after posting. It dealt with having the .mb at the end. As soon as I removed that, it was ok and saved correctly.
mark_wilkins
07-13-2003, 01:08 AM
the moral to the story is that we can't help you debug with only a fraction of the script and no information on the input on which it's run.
-- Mark
twidup
07-13-2003, 05:47 AM
Thanks Mark,
yeah, I should have posted a bit more about some of the variables and such.
I do appecriate the questions and hints too :)
-Todd
mark_wilkins
07-13-2003, 06:36 AM
No problem... people here are usually happy to help but it's hard when important details are left out! :D
-- Mark
CGTalk Moderation
01-15-2006, 03:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.