XPRESSO Python Node "Could not find port value for..." Error
noseman last edited by noseman
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?
m_magalhaes last edited by m_magalhaes
hi @noseman ,
looks like you have twice
def main()in your code.
Global variable are only necessary for the output's ports.
import c4d #Welcome to the world of Python def main(): global Input1 global OutputObject def main(): OutputObject = Input
import c4d #Welcome to the world of Python def main(): global OutputObject OutputObject = Input1
noseman last edited by
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.