davidyannick Posted October 18, 2020 Share Posted October 18, 2020 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 Quote Link to comment Share on other sites More sharing options...
Atom Posted October 18, 2020 Share Posted October 18, 2020 have you tried print tex.type() to see what is actually being passed through? Quote Link to comment Share on other sites More sharing options...
davidyannick Posted October 19, 2020 Author Share Posted October 19, 2020 Thanks using tex.type() helps me Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.