Math Evaluation in Numerical Entry Boxes
-
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,
-
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().