Find objects in closed maxfiles......

Hello.

I'm embarking on a script writing/learning mission and asked the guys i worked with for some ideas for a script for me to make.

One came up with a good one which would be useful. He basically suggested a script that can seach a folder on our network that contains maxfiles and it would list whether a certain maxfile has a certain type of object within it and it would show you the maxfile name and the object you were searching for.

For instance any maxfile that has a VrayPlane or a VraySun object within it.

It would be similar to a merge type script that lists the objects in a closed maxfile, but it would only show what was requested and the maxfiles they were in.

Is this doable in a maxscript?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

Loading .max files

Yep, as i said, no way to get the class of any object without merging, in other words, merge (or open) the scene files and scan the objects is the existing alternate.

my recent MAXScripts RSS (archive here)

Script_Butler's picture

I think it's above my

I think it's above my capabilities to script this for now!

More basic simple learning scripting for me.

Cheers.

Script_Butler

Script_Butler's picture

No way of doing it then?

Hi Anubis.

So from what you've put it's not possible to search for a particular object....

Boo hoo!

Thanks for the input Anubis, at least it's potentially saved me a headache of trying to do something that's impossible at the moment.

I don't think there are alternate ways of achieving what i want are there?

Cheers.

Script_Butler

Anubis's picture

With getMAXFileObjectNames

With getMAXFileObjectNames function you can get a list of objects names (array of strings) in a scene file but no way to get their 'type' (class) w/o merging.

my recent MAXScripts RSS (archive here)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.