Scaling Primitives [SOLVED]
On 18/03/2015 at 13:22, xxxxxxxx wrote:
Cinema 4D Version: 14,15,16
Language(s) : C++ ;
I'm sorry for this basic question, but how do I scale a generated primitive.
BaseObject *sphere= BaseObject::Alloc(Osphere); sphere->SetParameter(DescID(PRIM_SPHERE_RAD), 100, DESCFLAGS_SET_0); //this will set the radius to 100
I want to scale the sphere with the scale tool and set the result back to the sphere radius so I can have interactive scaling, while keeping the sphere parametric.
op->GetAbsScale() always return 1,1,1. I would like to be able to catch the scale tool result and feed it to the sphere.
Any hints on how to achieve that?
N.B I am later using currentstatetoobject to access the points and manipulate them. This does not solve my problem though.
On 19/03/2015 at 10:00, xxxxxxxx wrote:
to be honest, your question confuses me. As long as the user is in Model mode, the Scale tool seems already to behave exactly the way you request.
Maybe I'm missing something, but then you will need to go into a bit more detail on what you are trying to achieve.
On 21/04/2015 at 06:48, xxxxxxxx wrote:
just want to know, if my answer was sufficient?