ScriptSpot

Forum topic · General Scripting

Find objects in closed maxfiles......

By Script_Butler · 2011-06-14

Description

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 (4)

Loading .max files

Anubis · 2011-06-16

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.

Script_Butler · 2011-06-16

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

More basic simple learning scripting for me.

No way of doing it then?

Script_Butler · 2011-06-15

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?

Anubis · 2011-06-15

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.