THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/05/2007 at 05:15, xxxxxxxx wrote:
Cinema 4D Version: 9.6
Platform: Windows ; Mac ; Mac OSX ;
i need to identify if a rayobject is generated by a Instance.. but when i try:
return always the Opolygon.. that is the Editable result of the cloned render document.
On 01/06/2007 at 06:08, xxxxxxxx wrote:
You can get the object primitives with RayObject->link->GetCacheParent(). The problem with instance objects is they are linked through BaseLinks, so they have no hierachical conenction. This means you only get the primitive that the Instance is linked to, for instance you have an instance object of a cube, you will get the cube primitive returned instead of the instance object. I have no idea yet how to get the linked instance object.
On 01/06/2007 at 06:14, xxxxxxxx wrote:
this is enough
I've just verified this.. i can compare the pointers to detect if the object is the same.
On 01/06/2007 at 06:37, xxxxxxxx wrote:
you can get the instance by going even more one step up with GetCacheparent. So for example if it returns a cube you just go up until you find the instance.
On 01/06/2007 at 06:43, xxxxxxxx wrote: