Is there any way to get a result other than boolean out of the Node Expressions?
What I am trying to do is something like:
mgnodeexpression poly = mgNewNodeExpressionOperator(MEOP_ADD);
short newvalue = mgNodeExpressionEvaluateAsInt(poly);
mgSetAttList(rec, fltLayerTexture2, newvalue, MG_NULL);
I can't find anything like mgNodeExpressionEvaluateAsInt or mgNewNodeExpressionSetAtt. I know in this case I could just code the mgGetAttList to get the Layer 1 texture, but I am planning on using the more general mgNodeExpressionLoadFromString to construct the expression.
Node expressions are designed to be used to build node lists using mgFind and mgFindEx. As such they are meant to yield boolean expressions to know which nodes should be included in the node lists returned by these functions. I am not sure what they would do with Non-boolean results.
It is not quite clear what you are really trying to do here. Can you clarify?