Checking if a renderer property is local to a pass

To determine whether or not a renderer property is local, you can check the LocalProperties of the pass:

si = Application
log = Application.LogMessage

for p in si.ActiveProject.ActiveScene.Passes:
	if p.LocalProperties( 'Arnold Render Options' ):
		log( p.FullName + " has a local Arnold Render Options property" )

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s