Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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:
User Information: Cinema 4D Version: 9.6 Platform: Windows ; Mac ; Mac OSX ; Language(s) :
--------- Hi All,
i need to identify if a rayobject is generated by a Instance.. but when i try: RayObject->GetType(Oinstance) or RayObject->IsInstanceOf(Oinstance) )
return always the Opolygon.. that is the Editable result of the cloned render document.
any Help?
Best regards Renato
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.
cheers, Matthias
On 01/06/2007 at 06:14, xxxxxxxx wrote:
Thanks Matthias,
this is enough
I've just verified this.. i can compare the pointers to detect if the object is the same.
Thanks! Renato
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:
Thanks
Renato