  | | | Scripting-question: how to get the absolut position of an object wich is def | Scripting-question: how to get the absolut position of an object wich is def 2004-02-13 - By Glen Fraser
Back Hi Sebastian. Do you want just position or the entire transform (you used both terms in your original mail, so I'm not sure)?
In any case, one way to do it is to create a cluster of the deformed object's points (or polys/edges), then put an object to cluster constraint on an object (e.g. a null) to that cluster. That object's transform will be what you were looking for. You can also do tangency/normal with the obj-to-cns operator if you're interested in more than just the position, but I think (depending on the curve) you may get trouble with the reference frame flipping as the curve jumps across to the opposite side of "straight". (so to speak -- no comments please ; -)
Hope that helps, --- Glen Fraser XSI Left Fielder
-- --Original Message-- -- From: owner-xsi@(protected) [mailto:owner-xsi@(protected)]On Behalf Of Sebastian Faber Posted At: Friday, February 13, 2004 6:10 PM Posted To: xsi Conversation: Scripting-question: how to get the absolut position of an object wich is defomed on a curve? Subject: RE: Scripting-question: how to get the absolut position of an object wich is defomed on a curve?
yeah - this would be the hard way... I'll get deep into the docs tonight and hope I'll find a function to make my day.
thanks - sebastian
-- --Original Message-- -- From: owner-xsi@(protected) [mailto:owner-xsi@(protected)]On Behalf Of Graham D Clark Sent: Friday, February 13, 2004 11:35 PM To: XSI@(protected) Subject: RE: Scripting-question: how to get the absolut position of an object wich is defomed on a curve?
yeah with a deformation by curve, instead its points are deformed. clusters center won't follow, so perhaps, -average point pos for each point in a cluster and map to world space (scop works somewhere will look) -or for an area, track a null at geos average vertice position -or get bounding box center (script works too somewhere will look) -or possibly constrain a null to same path with same animation on its translation along path then track that global pos matching their disimilar path percentage and translation parameters with a scop -- ---- ---- ---- ---- ---- -- http://www.grahamdclark.com
-- --Original Message-- -- From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of Sebastian Faber Sent: February 13, 2004 1:16 PM To: XSI@(protected) Subject: Scripting-question: how to get the absolut position of an object wich is defomed on a curve?
How can I get the absolut position of an object which is deformed on a curve? As everybody knows - the deformation is a matrix transformation of the coordinate system. I suppose there is a (easy) way (without rebuliding the matrix-transformation by hand) to get the absolut position (x,y,z -values).
Sebastian
LIGA_01 COMPUTERFILM GmbH Sebastian Faber Landwehrstrasse 60 D - 80336 Munich - Germany
sebastian.faber@(protected) www.liga01.com
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |