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

    C++ Rangemapper?

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 496 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 13/11/2012 at 10:09, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R13 
      Platform:    Mac  ;  
      Language(s) :     C++  ;

      ---------
           Hello all, I've been looking for a C++ Range Mapper.  It seems super simple but I can't find one, if it exists or anyone talking about the lack of it existing.  The posts here seem to all be talking about the Range Mapper node in Xpresso. 
         Python has an inbuilt Range Mapper, so I assumed that C++ had one but I had no success looking for one.  If someone could point me in the right direction that would be great. And if one doesn't exist is there a efficient way to create your own?  I made one that's working so far,  but I haven't managed to get the spline curve  to be mapped.

      Thanks,
      Dan

      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 14/11/2012 at 02:57, xxxxxxxx wrote:

        Never assume. 😉

        Python, like Java and other more 'pure' OOP languages, has a core and a large set of built-in support libraries for developers to use as part of the language system.  C++ is a bit backwards in this and has only recently started to do something similar with the addition and frequent updates of the Standard Template Library (STL).  Unfortunately, the STL does not always play nicely with Cinema 4D since it relies heavily on exceptions for error checking and graceful backwinding - something Cinema 4D's C++ SDK doesn't support.  Whether or not the STL has a range mapper, I don't know.  Did not find one in a quick Google search but that doesn't mean it doesn't have one.

        It may be in your best interest to simply write your own (or find code for a range mapper system/class) and re-use it in your projects as needed.

        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 14/11/2012 at 05:53, xxxxxxxx wrote:

          Try this:
          http://c4dprogramming.wordpress.com/2012/09/13/range-mapping/

          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 14/11/2012 at 15:56, xxxxxxxx wrote:

            Thanks Robert, I think I understand.    And thanks Jack!  Google completely failed finding your page, searching for "C4D code range mapping" didn't return your page at all.  Your code worked like a charm!

            Dan

            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 15/11/2012 at 00:42, xxxxxxxx wrote:

              Yeah, that page isn't in the Google index yet, as we intended to put up some more content first. Oh well, I can also just have it indexed now.

              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 15/11/2012 at 05:56, xxxxxxxx wrote:

                https://developers.maxon.net/forum/topic/4790/4672_recreating-the-range-mapper&KW=template

                🙂

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