Hello,
I am creating an ObjectData plugin that will return a spline from GetContour. The points of this spline are based on the point values taken from a Matrix Mograph. Currently I am getting these points inside of GetVirtualObjects using this code.
BaseObject* DoubleCircleData::GetVirtualObjects(BaseObject* op, HierarchyHelp* hh)
{
BaseObject *matrixObj= op->GetDown();
if (!matrixObj)
return nullptr;
BaseObject* clone = op->GetHierarchyClone(hh, matrixObj, HIERARCHYCLONEFLAGS::ASPOLY, nullptr, nullptr);
if (!clone)
return nullptr;
Int32 ptCount = ToPoly(clone)->GetPointCount();
const Vector* padr = ToPoint(clone)->GetPointR();
return nullptr;
}
This code works properly and I am able to get the points I need from the Matrix. I am looking for an alternative method for getting the points that does not require it being run inside of GetVirtualObjects. For the purposes of my plugin I need to return a SplineObject and I am not sure if using GetVirtualObjects for this purpose is appropriate.
Any help would be greatly appreciated.
John Thomas