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

    retrieve cylinder attributes not working

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 562 Views
    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 Offline
      Helper
      last edited by

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

      On 03/02/2007 at 15:21, xxxxxxxx wrote:

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

      ---------
      Hi, I'm tring to get cylinder properties but does not work for PRIM_CYLINDER_RADIUS nor PRIM_CYLINDER_HEIGHT
      it does work for PRIM_AXIS
      am I doing somenthing wrong?

        
      var r = cobj#PRIM_CYLINDER_RADIUS;  
      var h = cobj#PRIM_CYLINDER_HEIGHT;  
      var axis = cobj#PRIM_AXIS;  
      
      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

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

        On 03/02/2007 at 15:44, xxxxxxxx wrote:

        works fine here. which cinema version do you use and how do you get cobj?

        cheers,
        Matthias

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

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

          On 03/02/2007 at 16:39, xxxxxxxx wrote:

          R10 and R9.6 osx

          yes is working the problem is that tostring() is not converting floats automatically as it does with integers, a format has to be specied otherwise it prints nil or zero.

          tostring( r, ".6f");

          thanks!

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

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

            On 05/02/2007 at 02:36, xxxxxxxx wrote:

            Sorry this works fine for me.

            var r = op#PRIM_CYLINDER_RADIUS;
            var h = op#PRIM_CYLINDER_HEIGHT;
            println(tostring(r));
            println(tostring(h));

            cheers,
            Matthias

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

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

              On 06/02/2007 at 09:04, xxxxxxxx wrote:

              maybe is a problem on the intel macPro??.
              without format to float prints 😞

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

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

                On 07/02/2007 at 03:10, xxxxxxxx wrote:

                It turned out to be an Intel Mac only problem. I reported it as a bug.

                cheers,
                Matthias

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