I understand that the Python Node cannot access the objects in the document. So the doc.SearchObject in the Python node has no effect. Correct me if I'm wrong.
But is it possible, to have a print function that prints to console for the Python Node?
Currently, I have to use several output ports and several result nodes to debug the program instead of just a handful of print lines.
Is there a way around this?
Thank you for looking at my problem.
Thanks @jed for the answer.
Basically, the doc.SearchObject() and print command works. I just need to remove the unused Output nodes, which is the Output1 for the newly created Python node.
short addition: It is possible to "read" document properties from a Python Node. But one should not edit the document directly from a Python Node.
Gotcha. Thanks for the reminder!