Starrider
09-15-2006, 03:05 PM
hello!
i am currently programming a locator node which has several attributes. if i change them, the locator should do the compute method, update some internal attributes and draw accordingly to the new data.
the problem is, that the locator doesn't compute anything as long as i haven't connected something to one of its output-attributes (and made the necessary attributeAffects). it seems to me as if only DAG objects would be allowed to start the graph evaluation. is that right or did i get something wrong.
how could i do something like (in stupid code):
attributeAffects(inputValue, COMPUTE_AND_DRAW);
i tried the MPxNode::setDependentsDirty(...) method, which didn't help. i used an additional boolean attribute (like bInputValueChanged) which didn't help as long it wasn't visible in my attribute editor or connected to another node.
anyone knows how to get this to work?
would be great!
i am currently programming a locator node which has several attributes. if i change them, the locator should do the compute method, update some internal attributes and draw accordingly to the new data.
the problem is, that the locator doesn't compute anything as long as i haven't connected something to one of its output-attributes (and made the necessary attributeAffects). it seems to me as if only DAG objects would be allowed to start the graph evaluation. is that right or did i get something wrong.
how could i do something like (in stupid code):
attributeAffects(inputValue, COMPUTE_AND_DRAW);
i tried the MPxNode::setDependentsDirty(...) method, which didn't help. i used an additional boolean attribute (like bInputValueChanged) which didn't help as long it wasn't visible in my attribute editor or connected to another node.
anyone knows how to get this to work?
would be great!
