|
| selection help - NOOB |
 |
Tue, 2 Oct 2007 15:52:14 +0000 |
Hi I am hoping that this is simple and I can get help.
I am new to maxscript, (but not to max)
basicaly i am working on an export script for my current project, and i am
getting an error
I am trying to go thru each object, center it, delete the rest and save it
out as it's own file (export will come later) I have NO trouble with the
string creation for the file name, i get an error when I tell it to selec
the object to affect.
----------------------------------------------
This is my code:
for z = 1 to $objects.count do (
----- create string for file location
save2folder = master_folder + objname_array[z]
save2file = save2folder + add_folder + objname_array[z] + dotmax
------ select each object, delete the rest, center it, and save it out
as it's own file
select $objname_array[z]
select invert
delete
$objname_array[z].position = [0,0,0]
saveMaxfile save2file quiet:true
fetchMaxFile quiet:true
)
--------------------------------------------
this is the error I get:
>> MAXScript FileIn Exception: -- No ""get"" function
for undefined <<
and it selects the line that starts with "select $objname_array[z]
please help
|
| Post Reply
|
|
|
|
|
|
|
|
|
|