C++ Rangemapper?



  • 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



  • 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.



  • 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/



  • 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



  • 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.



  • 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://plugincafe.maxon.net/topic/4790/4672_recreating-the-range-mapper&KW=template

    :)


Log in to reply