Jump to content
CinnamonMetal

Comparing float values ?

Recommended Posts

When truncating a float which represents color how can I verify whether the two values are equally the same color (python) ?

Edited by CinnamonMetal

Share this post


Link to post
Share on other sites

seems like you could do a dot product and compare that result to 1.0.  this would test if two colors are the same.  hou.Vector3.dot() would be the syntax for that I think. 

  • Like 1

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

×