Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Scaling Primitives [SOLVED]

    SDK Help
    0
    3
    282
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      On 18/03/2015 at 13:22, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   14,15,16 
      Platform:      
      Language(s) :     C++  ;

      ---------
      I'm sorry for this basic question, but how do I scale a generated primitive.
      For instance,

      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.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 19/03/2015 at 10:00, xxxxxxxx wrote:

        Hi,

        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.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 21/04/2015 at 06:48, xxxxxxxx wrote:

          Hi Salozo,

          just want to know, if my answer was sufficient?

          1 Reply Last reply Reply Quote 0
          • First post
            Last post