Maxon Developers
    • Downloads
      • All Downloads
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
      • Cinema 4D Python Examples
      • Cinema 4D C++ Examples
      • Project Tool
      • SDK Database
    • Documentation
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
    • Forum
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Forums
      • Overview
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • News & Information
      • Downloads
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Math Evaluation in Numerical Entry Boxes

    SDK Help
    0
    2
    53
    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 28/11/2005 at 20:24, xxxxxxxx wrote:

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

      ---------
      In COFFEE, I know to use 'evaluate()'. For the life of me, I can't figure out how to do the same in C++ using a GeDialog EditNumber gadget. I thought that it was automatic in C++, but this may be for Attribute descriptions only.

      Parser seems to be the right class to use, but I have no idea how to use it. Is AddVar() necessary for math expressions entered in the EditNumber? Is there a simpler way without Parser that I cannot find?

      Again - tutorials, examples, more tutorials, and more examples. I hate spending a week tearing apart something until the straight-jacket is firmly applied. 😉

      Thanks,

      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 10/12/2005 at 05:18, xxxxxxxx wrote:

        AddVar() is only needed if you want variables to be evaluated in the math expression. Otherwise just use Eval().

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