eraderma
09-18-2009, 03:04 PM
Hi all - I'm new to max script...any help would be greatly appreciated.
I want to write a script to easily remap files from one server to the other. The server paths are set up identical, with the exception of the server name.
Using the max script help in 3D studio I found this...
ATSOps.RetargetCommonRootOfSelection "\\Sanclfs103\graphicslib"
problem with this is I only want to change the server name and first folder and keep the rest of the path.
I was thinking maybe this script would be a better direction...
ATSOps.RetargetAssets <&maxObject>Asset Owner <filename>OldPath <filename>NewPath
but I can't quite figure out what the max object should be?
the attached screen print might help illustrate better.
red circle is my current path.
blue circle is the new path to other server I want to change.
I want to keep all the other part of the path after the server name and first folder.
Green circle is what my first script is changing it too.
thanks all.
Eric
I want to write a script to easily remap files from one server to the other. The server paths are set up identical, with the exception of the server name.
Using the max script help in 3D studio I found this...
ATSOps.RetargetCommonRootOfSelection "\\Sanclfs103\graphicslib"
problem with this is I only want to change the server name and first folder and keep the rest of the path.
I was thinking maybe this script would be a better direction...
ATSOps.RetargetAssets <&maxObject>Asset Owner <filename>OldPath <filename>NewPath
but I can't quite figure out what the max object should be?
the attached screen print might help illustrate better.
red circle is my current path.
blue circle is the new path to other server I want to change.
I want to keep all the other part of the path after the server name and first folder.
Green circle is what my first script is changing it too.
thanks all.
Eric
