PDA

View Full Version : Save selected objects to seperate max files?


mortenolesen
07-27-2011, 02:22 PM
Hi

I suck at scripting, but I'm trying to learn. I have a scene with 50+ objects and I would like them all to be saved induvidually into seperate max files. So I guess somekind of array that goes through each object and does a 'save selected' on it. I'm thinking this is relatively easy for an experienced scripter to make, so I was hoping to get some guidelines from in here.

Thanks

Morten

MattRennie
07-27-2011, 03:52 PM
you could do something along the lines of:

mySelection = selection as array

for i = 1 to mySelection.count do
(
saveNodes mySelection[i] ("c:/mySaveFolder/"+mySelection[i].name+".max")
)

CGTalk Moderation
07-27-2011, 03:52 PM
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.