Hi guys,
I just started learning Maxscript and some of you might find my problems quite dummy.
What I'm trying to achieve is to get the boxes I create (purple) snapped to the faces of an existing object (green one). I guess there is various ways of doing this.
I created a script which sets up the pivot points and moves it at the end of the existing object position, but is a very ineffective way of doing it.
I've seen online people suggest using rayintersect or coordsys.
Any recommendations to get this?
Thanks in advance
Replies
Also, how is this different from Object Painter in the Ribbon? Or maybe Normal Align?
@joost ill check if it can be used
rollout Boxtool "Box Creator"
(
spinner count "Number:" type:#integer range: [1,100,10]
spinner size "Box Size:" range: [1,100,8]
spinner distance "Distance Inbetween:" range: [1,200,25]
button create "Create Boxes"
on create pressed do
for i in 1 to count.value do
box length: (10) width: (size.value) height: (10) position:[i*distance.value,0,0]
)
MainFloater = NewRolloutFloater "Box Creator" 250 150
addRollout Boxtool MainFloater
CgSociety, Maxscript documentation and analyzing other peoples scripts is pretty much the way I learned Maxscript. Though thats also how I learn other languages so might be different per person.