Notifications
Clear all

[Closed] Moving custom file properties

 PEN

I have added #custom file properties using fileProperties.addProperty #custom … Now I’m having to save the animation off those files and load them onto another rig. In doing that I’m loosing the file properties. Problem is I don’t have a good way of saving them and loading them in to the new file that is created. I guess I could write them out to a text file and read them back in but that would be messy. Is there a good way to read the file props without the file being open. So a getFileProperties “ThePathToTheFile” sort of method? I not seeing anything. I didn’t have any luck with DOS either and of course then run into issues with windows versions.

Any suggestions?

5 Replies
 PEN

I should also mention that I would like to be able to set the props as well.

you can probably use php or something to create some sort of procedual script.
i’ve been using php for alot of the windows pipeline stuff. has alot of extra thing that dos dosn’t have, plus it’s very simialr syntax to max script.
worth taking a look at if you don’t want to dive into perl or python world.
cheers,
Los.

 PEN

Not a bad Idea Carlos. I use Perl now but I’m in a situation where I have people working out of several different shops and I don’t have a lot of control over what they are running. I guess I could get them to install perl, I think one has it already. For now I have a bit of a hack work around and I think that will get me through.

you might want to look at autoit too.
autoit is a very basic scripting lenguage but it has alot more functions built in than dos, the lenguage is alot more like tcl. to big pluses dogh are that it has an extension to writte gui with tons of widgets built in, and the second is that you can turn you script into self contained “.exe”’s. this way you can have a script compiled as an exe running from a network location.

the only one complain i have about autoit is that it has super week arrays, so i endup haveing to use more complex “while” loops when parsign through unknown numbers of objects.
anyways man, i’m sure you’ll figure it out.
cheers,
Los.

 PEN

I have never heard of that one. I will look into it. Being able to create an EXE out of it is a big advantage as I don’t have to worry about installing any parsers. Thanks for the heads up.