About this site
ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Comments
rewrite
I had written this
Since getVert is used to get the vert count of both editable mesh and editable poly but it did not work. I'll have to look into it more and see why its not working write.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
Editable Poly
Why no matter what I do this does not work with editable poly?
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
quick reply
shortly - modify the expression cause its made for meshes
my recent MAXScripts RSS (archive here)
This is awesome Anubis.
Thanks Anubis for the help.
However when I just run $Box01.position.controller.update() specifically it errors out saying unknown property in position when using max 2011.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
notes...
Hi John,
1st - a little correction needs.
I usually works with collapsed to mesh objects and experiment here to getVert() from TriMesh (.mesh) but that's wrong ;) So, the expression s'd be:
I tested it in Max 2011 as well. Works fine. Remember that Max 2011 use 3 digits enumeration and the name of your Box is not 'Box01' but 'Box001' or 'Box002'.
my recent MAXScripts RSS (archive here)
thx anubis, cataloged and
thx anubis, cataloged and saved :)
john, once i add this you can do that, might not be today but it shall be awesome ;)
Raphael Steves
Here is an example of what
Here is an example of what I'm trying to do.
I want to populate a plane with objects on every vert of that plane.
When those verts move I want their corresponding objects to move along with that vert.
The reason I'm not using the attachment controller is because it does it based on the center of each polygon face. Although I know i can go in and change the values to 1,-1 or 0,0 to place it on the vert but no matter what i do it leaves me with an empty edge on no objects.
Does that make sense?
That is why I figured it would be easier to possibly through script just link the objects transforms to the individual verts position.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
yes i published one for
yes i published one for populating a mesh with copys on the verts but the one brot linked actually links a node to another objs vert
if you wanna link a vert to an obj id suggest some rigging and weighting methods
Raphael Steves
position_script
example:
my recent MAXScripts RSS (archive here)
Evalute
Now is there a way to get that to update the the sphere is moved. That way the object will follow that vert. So if i move the sphere or a move that individual vert the box position will update accordingly.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)