On 21/10/2014 at 19:54, xxxxxxxx wrote:
Cinema 4D Version: R14-16
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
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?
On 23/10/2014 at 01:36, xxxxxxxx wrote:
could you give us more information about what you are trying to do and what kind of plugin you are working on?
On 23/10/2014 at 14:03, xxxxxxxx wrote:
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.
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();
BaseContainer * bc = cacheParent->GetDataInstance();
const Int32 index = bc->GetInt32(BC_ID_MODATAINDEX,NOTOK);
if(index != NOTOK)
On 24/10/2014 at 12:06, xxxxxxxx wrote: