Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Aligning 2groups randomly

0 REPLIES 0
Reply
Message 1 of 1
hanselmoniz
184 Views, 0 Replies

Aligning 2groups randomly

--- Script to align 2 array of groups of randomly with each other i get an error "-- Unknown property: "transform" in undefined <<" 
rollout align2groups "align2groups" width:100 height:103 ( button btn1 "Commit" pos:[11,53] width:82 height:18 button btn2 "Array1" pos:[11,5] width:82 height:16 button btn3 "Array2" pos:[11,29] width:82 height:16 button btn4 "Undo" pos:[11,79] width:82 height:18 local ar1 local ar2 on btn2 pressed do (undo on ar1 = selection as array) on btn3 pressed do (ar2 = selection as array) --absolute on btn1 pressed do ( for i = 1 to ar2.count do ( obj1 = ar1[i] obj2 = ar2[i] obj1.transform = obj2.transform ) ) on btn4 pressed do ( max undo) ) Createdialog align2groups width:100 height:103

--- Any help in sorting this out will be much appreciated thanks

3dmaxdesign 2011 64-bit
i7 2600 windows 7 64-bit
quadro 600
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report