can somebody tell me how to get the “spec_level” from an effect? i’ve gotten this far (below code, which is not yielding correct results obviously), but can’t get the actual float value.
i’m kind of paraphrasing with the code here…
daeString typeName = children[j]->getTypeName ();
daeString elementName = children[j]->getElementName ();
domAnyRef any = NULL;
if (!strcmp (typeName, “any”))
{
any = (domAnyRef)&children[j];
}
if (any && !strcmp (elementName, “spec_level”))
{
//daeString value = any->getValue ();
daeMemoryRef memRef = any->getValuePointer ();
if (memRef)
{
effect->spec_level = *memRef;
}
}