PDA

View Full Version : query unresolved name


llikethat
05-09-2008, 05:21 AM
Hi,

How do i query an unresolved name in maya scene file without opening it? is it possible to do that?

I want to query the scene file, check if the references are present in the path. if not present grab the unresolved path and using the dirmap command resolve it.

Thanks in advance.

Norb
05-09-2008, 05:12 PM
It'd probably be best to do this via an external script from maya (i.e. python)

The general gist of the program would be to go through the maya ascii file line by line searching for the string you want to test against. I say maya ascii for the above method since you can't really search for a string in a binary file :p

llikethat
05-11-2008, 05:17 AM
Hi Norb,

Thanks for the reply. This process will involve 2 steps if it is binary file,

1. convert the file from binary to ascii
2. do a line by line search and convert the paths.

Or can we just grab the reference files in the scene using the `file -q -r` command and use the `file -loadReference` to replace the referenced files.

CGTalk Moderation
05-11-2008, 05:17 AM
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.