Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    PRIM_CIRCLE_RADIUS

    SDK Help
    0
    7
    642
    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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 25/08/2003 at 13:04, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.100 
      Platform:    Mac  ;  Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      -- how can I retrieve the simple radius of a spline object.
      "PRIM_CIRCLE_RADIUS" (!)

      help is greatly appreciated.

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 28/08/2003 at 00:08, xxxxxxxx wrote:

        Mmh, frankly I have no idea, what your are asking...

        Maybe you could elaborate your question a bit more?

        Kabe

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 28/08/2003 at 00:53, xxxxxxxx wrote:

          thanks for your reply,
          I have a spline object -- a circle ( --> used for an extrude object). I have dozens of expressions applied to objects which ideally all relate to the size of the circle object. Yet I'd have to change vars in all exp.-- which is no good!

          and now the question -- in slow:
          -- how can I retrieve the radius of a Circle object?
          similar to 'a=vObj->GetScale...'

          in SDK is mentioned "PRIM_CIRCLE_RADIUS" (!) as a container ID, however I don't get the clue how to use this information.

          a global variable (e.g. var Rad=10), if possible declared in one expression to which all other exp. relate to would help too, however I miss the information how to declare a variable globally.

          help is greatly appreciated.
          mk

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 28/08/2003 at 01:06, xxxxxxxx wrote:

            You have to get the container of the object with "var bc = obj->GetContainer()". Then you can get the value with "var r = bc->GetReal(PRIM_CIRCLE_RADIUS)".

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

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 28/08/2003 at 01:54, xxxxxxxx wrote:

              thanks for the quick response!
              I inserted this code:
              ...
              var bc, r, obj;
              ...
              obj=vDoc->FindObject("Circle3");
              bc = obj->GetContainer();
              r = bc->GetReal(PRIM_CIRCLE_RADIUS); /*errror message*/
              ...
              'r' would be the var to deal with but it doesn't work:
              "Member not found"

              -> and I surley have a Circle Object 'Circle3' in the object manager...

              I'd appreciate your reply
              mk

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

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 28/08/2003 at 04:00, xxxxxxxx wrote:

                Oops, I guess GetReal() is called GetFloat() in C.O.F.F.E.E.

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

                  THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                  On 28/08/2003 at 05:22, xxxxxxxx wrote:

                  thanks very much,
                  -- that was great help!

                  mk

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