Jump to content
davidyannick

About redshift node types (python)

Recommended Posts

I need to test node type in a script, Id' like to know if a selected node is a redshift texture so I wrote :

tex=hou.node("/obj/Palisade_Spike_0/Asset_Material/Palisade_Spike_0/albedo")

 if tex.type()=='Vop/redshift:TextureSampler':
	#

But the result is always false, any idea ?

Thanks

Share this post


Link to post
Share on other sites

have you tried print tex.type() to see what is actually being passed through?

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

×