|
Hi everyone, this is my first time posting here, I have been a daily reader for a while:)
I am new to programing and writing scripts for 3dsmax, and I have to say I’m a confused noob hehe…
I need some help writing a script (and yes I have been reading the excellent maxscript reference help files and tutorials), but I have to say I often get pretty confused with the way they explain things in the maxscript reference manual, as they often leave out small details that noobs like me really need to know/learn!
Anyways, here’s what I need my script to do:
Let’s say I have 250 billboard trees scattered across a terrain, and I now have to add a collision object (a rectangle box for example) to all those trees, perfectly aligned to every tree’s pivot center. Placing them 1 by 1 manually would take a long time.
So what I have in mind is this: I create my rectangle box name ColObject01, and select it. Then I run the script, and I need it to basically duplicate and instance ColObject01 as many times as there are trees, and then align each of those objects to the pivot center of every tree.
I could call my trees “Tree01, Tree02, Tree03 etc...” so that the script knows to align ColObject01, ColObject02, ColObject03 etc… to Tree01, 02, 03 and so on. Is this the right way to do it?
I’m not sure how to write a script like this, my knowledge at the moment is pretty basic, and I would really appreciate any help with this! Is there a similar script already out there that I could look at?
Thanks for your time!
Stephan
|