Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

Maxunderground news unavailable

Seemingly simple instance select issue?
show user profile  jpedleham
Hey, Im massively inexperienced in maxscipt, im more an artist than a TD. At the moment im trying to automate some Exports. I want to only export one of each item in the scene but there may be hundreds of instances throughout the scene. So im trying to select one object, export it, then group all instances of that object so that it cant be exported again (by only selecting the edit polys) So Im trying to write up a script that will select each edit poly/edit mesh object in my scene and export it as an fbx, then select all instances of that object and group it, then move onto the next edit poly etc. However im falling at the first hurdle, the simple task of automating and grouping instances seems alot harder than i thought..

for obj in geometry do

fn selectinstance =
local arSelInstancesNodes = #()
on isenabled return (selection.count == 1) and (InstanceMgr.canMakeObjectsUnique (selection as array))
on execute do
InstanceMgr.getinstances selection[1] &arSelInstancesNodes
Select arSelInstancesNodes
group arSelInstancesNodes
arSelInstancesNodes = #()

Im getting the error 'Unable to convert: GetModifyButtonText() to type: String '
And i cant for the life of me figure out where its coming from?
Im probably doing something majorly wrong here but im not clued up enough to figure out what. Can anyone help?

read 252 times
5/21/2015 10:07:35 PM (last edit: 5/21/2015 10:15:44 PM)
#Maxforums IRC
Open chat window