Access 2nd input in a Python node

   2967   2   1
User Avatar
Member
74 posts
Joined: 1月 2015
Offline
I have a Python SOP where I modify the geometry coming in through the first input. I want to use info from another SOP (without modification). I can reference it in Python using hou.node('path'), but I see 4 inputs on the Python SOP. Can I plug a SOP into the 2nd input and access its info in Python? If so, how?

Happy New Year!
Edited by element33 - 2022年12月31日 23:21:16
User Avatar
Member
900 posts
Joined: 2月 2016
Offline
node.inputs()[1].geometry()
User Avatar
Member
74 posts
Joined: 1月 2015
Offline
Andr
node.inputs()[1].geometry()
Thanks.
  • Quick Links