Hey all,
Months back I saw a video where someone had created their own custom primitive object for 3ds max of a Lamp Post where after placing the object in the scene, there were multiple parameters that you could adjust, for example the length of the vertical pole, the length of the horizontal pole and I think the scale of the light itself.
I was wondering if there are any tutorials out there that show how to do this?
I was able to find
http://www.scriptspot.com/3ds-max/scripts/primitive-maker which is awesome, but the only parameter is the scale which isn't nearly as useful.
Replies
They allow you to create snapshots of editable mesh objects just like the script does and then vomit those back into your scene, and you can adjust it through script on the object level but there isn't any kind of support for a deeper level of custom attributes.
Some people get around this by setting up a subdivision attribute which is just subdividing the mesh, or defining the height or width but they are just adjusting the objects scale.
You can get creative and add in other modifiers as attributes but you're pretty much stuck there.
You can also store a library of custom primitives that are slight variations and then based on what settings the person picks spit out that specific mesh.
So in the Lamp Post example, what sort of modifier would the guy have been using to allow for adjusting the height of the pole? I was an upside down L shape and he was adjusting both lengths.
But if you write your own custom primitive plug-in there is quite a bit you can do behind the scenes, most of it smoke and mirrors like, selecting specific predefined loops or polys in the mesh and allowing the user to move them in a specific way by manipulating a slider in the command panel then calling that slider something like "pipe height", it all depends on what the person can pull off in maxscript.
Outside of the primitive maker script there isn't a non-code friendly way to create custom primitives you end up using maxscript or C++ to create the custom primitive plug-ins. It goes from crazy simple to insanely hard in the blink of an eye.
it seems to be covering the subject pretty well
http://docs.autodesk.com/3DSMAX/15/ENU/MAXScript-Help/index.html?url=files/GUID-EC33589D-822A-4E79-9682-185EC5DBAB9F.htm,topicNumber=d30e104121
I was hoping to find a more simple solution though rather than having to try to teach myself max script.
Thanks Mrfred.
(I was thinking on setting up a few base heads that way : male, female, kid, big guy - all morphable into each other ...)