Hi,
I am trying to write a python script that detects error-occuring nodes in XPresso.
It seems that there is a method GvNodeMaster.Execute() for checking if the node master is including error node, and returns the type of error.
However, I tried with an xpresso network with a Math node that divides by zero and an unlinked Obejct node and did not get the expected results.
Code:
import c4d
def main() -> None:
xpresso_tag = op.GetTag(c4d.Texpresso)
master = xpresso_tag.GetNodeMaster()
print(master.Execute())
if __name__ == '__main__':
main()
Result:
0
I was expecting c4d.GV_CALC_ERR_DIVISION_BY_ZERO
which is 10 or c4d.GV_CALC_ERR_UNDEFINED
which is 2.
Am I doing something wrong? Any help would be appreciated.