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).
On 21/10/2014 at 19:54, xxxxxxxx wrote:
User Information: Cinema 4D Version: R14-16 Platform: Windows ; Mac OSX ; Language(s) : C++ ;
--------- Hi All
Does anyone have any examples of these Id's use? BC_ID_MODATAINDEX and BC_ID_MODATATAGINDEX.
Are these Ids relative to the Clone Index?
If not, there is a way to know for a RayObject his Index, if was generated by a cloner?
Best Regards, Renato
On 23/10/2014 at 01:36, xxxxxxxx wrote:
Hello,
could you give us more information about what you are trying to do and what kind of plugin you are working on?
Best wishes, Sebastian
On 23/10/2014 at 14:03, xxxxxxxx wrote:
Hi.
We just need to recover from a RayObject the Mograph Index if this RayObject->link is generated by Mograph.
I found these ID that seem related to this.
So if i generate 100 clones with Mograph, would be useful to know while rendering the Mograph Index of any RayObject that generate the intersection.
thanks Renato
On 24/10/2014 at 02:30, xxxxxxxx wrote:
a RayObject's link references to the polygon object that was the base for this RayObject. This polygon object can be a virtual object in a generator's cache. To get the generator simply call GetCacheParent. Then you find the BC_ID_MODATAINDEX in the generator's (clone's) BaseContainer:
BaseObject * cacheParent = rayObject->link->GetCacheParent(); if(cacheParent) { BaseContainer * bc = cacheParent->GetDataInstance(); const Int32 index = bc->GetInt32(BC_ID_MODATAINDEX,NOTOK); if(index != NOTOK) { GePrint("index: "+String::IntToString(index)); } }
best wishes, Sebastian
On 24/10/2014 at 12:06, xxxxxxxx wrote:
thanks Sebastian Renato