THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/08/2004 at 13:21, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.206
Platform:
Language(s) : C++ ;
---------
Hi,
I have an object data plugin that creates new objects. The new objects need to be at specific locations in world space. But I can only make the objects be created relative to the ObjectData plugin.
Im using:
BaseObject* MyObjectPlugin::GetVirtualObjects(PluginObject *op, HierarchyHelp *hh)
{
BaseObject *oMain = BaseObject::Alloc(Osphere);
if(!oMain) return NULL;
Matrix m = oMain->GetMg();
m.off = Vector(0,0,200);
oMain->SetMg(m);
return oMain;
}
Im trying to move the sphere at Vector(0,0,200) in world space, but because the sphere object becomes a child of my ObjectData object, the sphere positions itself locally.
Any help is apprieciated