Hi,
I created a function in Object_Plugin which creates a leaf.
The leaf is created with a plane. In the SplineData in the Attribute-Manager you can shape the leaf shape, like in the hair-Material and depending on how much points the user adds, the plane subdivides. Also I move the points of the plane so that the axis is exact on the tip/bottom of the plane.
Then I added a bend deformer and wanted to fit it to the parent but I had to do it twice, so at the end i also had to move the deformer , so it behaves a little weird. It doesn`t really fit.
At the the end the deformer is in the right place but it just refresh if the user moves a point in the splinedata.
So the code is just a test and far from finished.
At the end I convert all into a polygon object.
- why does I have to call fit to parent twice
- why does it not refresh
So what is the problem here, can you help me.
So I added the code and for the res-file, I think the header and str file is in this case not necessary.
I also attached the plugin file and a small video do demonstate, what I mean.
Cheers
Thomas