SOLVED Pointcount from bevel deformer

Hi
I have a Bevel Defomrer on a simple polygon triangle. Beveling on of the points. Adding some points in the rounding operation compared to the initial polygon.
How can i access the resulting points from the Bevel Deformer. Im trying this in a python tag on the deformer:

def main():
    op.GetObject().GetPointCount()

Resulting in this error:
AttributeError: 'c4d.BaseObject' object has no attribute 'GetPointCount'
And that is probably logical as its not a polygon object 🙂
So how can i access the resulting points the Bevel Deformer produces?

Regards
Bonsak

Hi @bonsak,
Try use op.GetObject().GetDeformCache().GetPointCount() in a Python Tag on the Polygon Object.
Here you can get more information: GetDeformCache().

Hi @bonsak,
Try use op.GetObject().GetDeformCache().GetPointCount() in a Python Tag on the Polygon Object.
Here you can get more information: GetDeformCache().

Cool! Thanks!

-b

btw, please read the How to Post Questions, Q&A New Functionality.
I think it's better to move this question into Cinema 4D Development category 😉

Sorry 🙂