On 22/07/2013 at 13:58, xxxxxxxx wrote:
Just curious if theres a way to find the count on a primitive. Like when you clone onto a primitive object how does it know how to put x number of clones on the object. I assume if the cloner can read that I should be able to find that with python, right? Didn't see anything in the doc for primitives.
Thanks in advance!
On 22/07/2013 at 14:59, xxxxxxxx wrote:
For a BaseObject you have basically two scenarios. The BaseObject could be representing a SplineObject, then you can get the spline with BaseObject.GetRealspline(). If the BaseObject is representing a PolygonObject you have two options - use the cache (fast) or collapse the object into its polygon form with CTSO or a similar method (slow). Then simply proceed with PointObject.GetPointCount(), as bothSplineObject and PolygonObject are derived fromPointObject.
On 22/07/2013 at 15:43, xxxxxxxx wrote:
Tried the spline object route with no luck. I had thought of trying a collapse method but thought there had to be a better way. I'll have to look into this cache method first maybe. Thanks for the help again LD!