drmerman
01-25-2007, 04:23 PM
Hey Guys,
As a result of the getAttr command, I have a string containing the following :
C:/Documents and Settings/User/Desktop/image.jpg
I'm creating a batch file that needs to use this path, but obviously all of the /'s need to be \'s. I know about the fromNativePath command, but that works in a different way.
I was wondering if there is any way to search through the string and when Maya finds a /, replace it with a \ ?
If anybody has any other ideas, they'd be much appreciated! :D
Cheers,
Dr Merman
As a result of the getAttr command, I have a string containing the following :
C:/Documents and Settings/User/Desktop/image.jpg
I'm creating a batch file that needs to use this path, but obviously all of the /'s need to be \'s. I know about the fromNativePath command, but that works in a different way.
I was wondering if there is any way to search through the string and when Maya finds a /, replace it with a \ ?
If anybody has any other ideas, they'd be much appreciated! :D
Cheers,
Dr Merman
