XPRESSO Python Node "Could not find port value for..." Error
-
Python Hierarchy Node 11A.c4d As I'm trying to understand how to use a Python Node in XPRESSO, I did this very simple setup. All I want is for the "OutputObject" to be the same as the "Input1" but I keep getting an error: "NameError: Could not find port value for 'OutputObject' in node 'Python iterate Hierarchy'."
Can someone explain this please?
Cheers -
hi @noseman ,
looks like you have twice
def main()
in your code.
Global variable are only necessary for the output's ports.Your code
import c4d #Welcome to the world of Python def main(): global Input1 global OutputObject def main(): OutputObject = Input
should be
import c4d #Welcome to the world of Python def main(): global OutputObject OutputObject = Input1
Cheers,
Manuel -
@m_magalhaes
Oh man... thank you so much. Even when I read your reply, I couldn't "see" it in the Node... was staring at it for to long.
thanks.