Jump to content
Sign in to follow this  
magneto

How to read geometry from the second input inside Python SOP?

Recommended Posts

Hi,

 

Is there a way to get the geometry of the second geometry inside a custom Python SOP, not the Python SOP since it only has 1 input?

 

 

Thanks :)

Share this post


Link to post
Share on other sites

Hi. 

inputs = node.inputs()
try:
    geo = inputs[1].geometry()
except IndexError:
    print "No second input"
  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×