Copy this into a maxscript window and read the comments. I think this should do what you needaSelection = ( selection as array ) --store the selection in an arrayaDuplicatedObjects = #() -- create an empty array for storing duplicated objectsfor i = 1 to aSelection.count do( obj = aSelection[i] --pull the object from the…
Hey guys, just started learning MaxScript and I'm trying to make a tool for work but I've hit a wall. Embarrassingly early as well :P So what I'm trying to do is this; I have an object that's broken up into lots of chunks. Basically we need a dummy object positioned at the pivot position of each of these chunks. place =…
selection is an object collection. You can access more specific object collections within your scene. for instance objects -- all the objects geometry lights cameras helpers shapes systems spacewarps and we know that dummys are of the class dummy (type classof $ to get your selections class) for obj in helpers do( if…
r_fletch_r; cheers for this buddy, very helpful. fn delDummies = ( delete ( for o in helpers where classOf o == Dummy collect o ) ); is what i came up with based on your suggestions. At the moment I'm trying to expand this tool to make it more autonomous. To do that I want to; * Take all the objects in a selection and name…
Thanks for the reply buddy but it didn't work. EDIT: place = 0 for i = 1 to selection.count do( place = selection.pos Dummy pos:place ) Works, cheers buddy. One more question; how do I select all the dummy objects in a scene and delete them?
for i= 0 to $.count do( CODE HERE ); (i think, newbie myself :P) This should loop through all your objects you have selected. I would however place the dummy at the lowest point of your model, not just its position. Gimme a holla if you want to go a step into this direction
well, what you could do is save all the dummys you created with the first script in an array and then cycle thru that array with the second script deleting them... this way you could have other dummys in there, too or you look into automatically renaming those dummys (e.g. putting a prefix like "pivotdum_" before you…