PDA

View Full Version : Link Object to Poly


LD50
03-04-2009, 07:05 PM
Hey Guys, maybe someone can help me. Im a total script noob ;)
Is it possible to Link/Bind an object to a specific poly of another object via script?
Thanks for any info on that subject.

greetz

ZeBoxx2
03-04-2009, 07:28 PM
Get the vertex position / face center position / position on the face using the usual mesh/poly operations (where applicable), move the object in question to that position? Can do that in e.g. a scripted position controller.

I'm sure this topic has come up before, so have a search through the forums and also have a peek at scriptspot.com - might be a prefab script up on there already :)

Dimich
03-04-2009, 08:03 PM
Wouldn't it be easier to get the face and attach the object via attachment constraint (which you can also do via script as well)?

ZeBoxx2
03-04-2009, 08:50 PM
you'd think :beer:

Dimich
03-04-2009, 09:36 PM
well, the question would be what is faster, attachment controller, or script controller :thumbsup:

LD50
03-05-2009, 09:45 PM
Thanks for your quick answers they helped a lot!

CGTalk Moderation
03-05-2009, 09:45 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.