On 15/07/2015 at 07:56, xxxxxxxx wrote:
Hello,
I am trying to create a xpresso setup, there will be custom spline drag&drop field and spline will automatically center and resize according to general polygon object's size.
I had figured out centering object with plugincafe authors help but I got stucked comparing size of spline object and polygon object.
Basically I would like to resize and fit my spline object according to a poly object.
I'm able to find their size values with;
sizeobj1 = obj1.GetRad()*2
sizeobj2 = obj2.GetRad()*2
It's ok but I cannot figure out how to resize my spline object proportionally according polygon object.
I have searched net for an answer but could not find anything.
I'll be gladly appreciated for any answer. An example would be even better since I'm a beginner in python.
Thank you,
Best Regards.
https://www.dropbox.com/s/mm9qhtpjcrp24hu/size_comparision_02.c4d?dl=0