PDA

View Full Version : Urgent!


shweta
02-22-2005, 11:15 PM
Hi
i have an urgent problem to be solved. i have a 16 groups on my file and i want to export them at once i.e in one selection and save automatically as .osg file but as individual files. can it be done in max script? how do i do it?
please reply sooon my ead line is thursday for the project submission and i have to export 1000 groups individually.
shweta

prettyPixel
02-23-2005, 04:18 AM
something like this..

sel=getCurrentSelection()
savepath=getSavePath() -- or savepath="C:\\"
if savepath!=undefined then
(
for g in sel where isGroupHead g do
(
select g
exportFile (savepath+"\\"+g.name+".osg") selectedOnly:true
)
)

CGTalk Moderation
02-23-2006, 05:00 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.