[Closed] Slave point helper to a vert
how can I attach a point helper to a vertex via a script
and have that point follow both pos and normal orientation?
Attachment Constraint is face based, not vert based.
Link_constraint cannot use verts as targets.
Attachment Constraint is face based, not vert based.
But, using barycentric coordinates each vert lies at:
0,0,1 or 0,1,0 or 1,0,0
Link_constraint cannot use verts as targets.
But LinkedXform can do so.
linkedXfrom can control verts with objects
I want to control objects with verts
Scripting the setup of an attachment controller to use a specified vert’s associated face is producing incorrect results.
the face ids appear unique to the attachment controller and do not match the same face indexes returned by polyop.getFacesUsingVert
I have a similar need to attach helpers to vertices but I need to incorporate this in a larger tool, so your tool maui is of little use as I assume it is encrypted and can not be re purposed. Do you have any clues as to how we an write our own tool
I think we have same question here :
http://forums.cgsociety.org/showthread.php?f=98&t=1211019
denisT suggested to use a script controller to attach any node to a vertex.
With a transform controller a node can be controlled by position and direction of an object’s vertex
I can write the position script no problem, but I couldn’t find a way to get a transform or normal out of an Editable Poly vertex.
This will gives you the normal of Editable Poly vertex.
neighborFacesBA = polyop.getFacesUsingVert obj vIdx
for nf in neighborFacesBA do
(
n = polyop.getFaceNormal obj nf
vertNormalDir.x += n.x
vertNormalDir.y += n.y
vertNormalDir.z += n.z
)
vertNormalDir = normalize (vertNormalDir / neighborFacesBA.numberSet)