Awoogamuffin?
02-08-2006, 02:31 PM
Hi there...
ok, I've got a relatively complicated scripting project ahead of me. I work in architectural visualisation, and I just want to create a simple tool that will allow me to place trees in my scenery! Unfortunately, I've been trained in MEL but not Maxscript.
Anyway, I've written a few separate tools, such as one that will allow you to place the trees (simply textured planes), one that will keep a plane facing the active view etc. etc.
My problem now is making a single tool that will handle these trees and save them when I save the max scene. Ok, more concretely, here's what I want the tool to do:
- Allow the user to place a bunch of trees
- Allow the user to change the size of all trees, or just one tree
- All trees to be in one group
- All trees to face active viewport
Now I've been looking into scripted plugins, seeing as apparently I can save parameters in the max scene. What I would like is an array that stores all the trees, which is saved in the scene and can be accessed from various places. One example of why I'd like this array is to update all the trees whenever the active viewport redraws.
Unfortunately I can't seem to find a decent way of having a global array which will be saved and recovered as I close and open a file. Any ideas? Am I barking up the wrong tree as far as plugins are concerned?
Also, I would like scripts running for each individual tree. In Maya I had expressions that would control certain aspects of an object relative (for instance, objectA.rot.Y = objectB.rot.X/2). Is there anything like that in maxScript?
Or maybe someone can point me to a well commented scripted plugin I could rummage around in...?
ok, I've got a relatively complicated scripting project ahead of me. I work in architectural visualisation, and I just want to create a simple tool that will allow me to place trees in my scenery! Unfortunately, I've been trained in MEL but not Maxscript.
Anyway, I've written a few separate tools, such as one that will allow you to place the trees (simply textured planes), one that will keep a plane facing the active view etc. etc.
My problem now is making a single tool that will handle these trees and save them when I save the max scene. Ok, more concretely, here's what I want the tool to do:
- Allow the user to place a bunch of trees
- Allow the user to change the size of all trees, or just one tree
- All trees to be in one group
- All trees to face active viewport
Now I've been looking into scripted plugins, seeing as apparently I can save parameters in the max scene. What I would like is an array that stores all the trees, which is saved in the scene and can be accessed from various places. One example of why I'd like this array is to update all the trees whenever the active viewport redraws.
Unfortunately I can't seem to find a decent way of having a global array which will be saved and recovered as I close and open a file. Any ideas? Am I barking up the wrong tree as far as plugins are concerned?
Also, I would like scripts running for each individual tree. In Maya I had expressions that would control certain aspects of an object relative (for instance, objectA.rot.Y = objectB.rot.X/2). Is there anything like that in maxScript?
Or maybe someone can point me to a well commented scripted plugin I could rummage around in...?
