Access to cluster constraining

Date : Tue, 06 Jun 2006 15:43:49 +0200
To : XSI(at)Softimage.COM
From : Juan Lara <j.lara(at)bren.es>
Subject : Access to cluster constraining
Hi,

I have an object with a "object to cluster" constraint and I need to know what cluster is the constraining cluster. I wrote the next code but the "constraining" command always returns the parent 3Dobject of constraining clusters, not the specific cluster:

               For each oObj in cObj
                   for each oCns in oObj.kinematics.constraints
                       if oCns.type = "objclscns" then
                           for each oCing in oCns.constraining
                               logmessage oCing
                           next
                       end if
                   next
               next

Thanks.

Juan Lara.
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.