Notifications
Clear all

[Closed] Attachment Controller Keys and Face id's

I’m trying to script the rigging of some kind of cloth driven bone system ,following an old polycount thread.

In it they use point helpers attached to the cloth via attachment controllers.

I am noticing hover that passing face IDs to Attachment Controller Keys (<MAXAKey> values) gives erroneous results.

the index values that the Attachment Controller uses don’t match the index values of the faces retrieved via things like $.selectedFaces

for example I can select face and $.selectedFaces will return something like

#faces(23 : $Editable_Poly:mesh @ [0.000000,0.000000,0.000000])

great, so my face index is 23, right?

but when I try to see this value in the attachment modifier

(AttachCtrl.getKey ($.pos.controller) 1).face

I get a completely different number.

any idea what’s going on?