On 26/02/2015 at 14:55, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 13+
Platform: Windows ;
Language(s) : C++ ;
---------
I have a VideoPostData plugin, it is a renderer, so I need to transfer all scene data, the problem is:
1- how to get the tag from the object "to read which shader is assigned to the polygon object" , this fails with a cube primitive where RayObject::link returns NULL.
2- if there is a cloner object with a dynamics tag, it doesn't read correctly "it reads initial positions NOT the modified dynamics positions"
there may be other problems which I don't know... here is a sample code
if (vps->vp==VIDEOPOSTCALL_RENDER && vps->open)
{
for(Int32 i = 0; i < vps->vd->GetObjCount(); ++i)//iterate over polygon objects
{
RayObject *op = vps->vd->GetObj(i);
if(op->type == O_POLYGON)
{
BaseObject *bop = op->link;
if(bop)
{
//reading tags here, which fails for primitives and may be other untested cases
}
}
}
}