Jump to content
Sign in to follow this  
anicg

beginner question: invert mask

Recommended Posts

Posted (edited)

I can't find a heightfield node to invert a mask, any idea how to do that? if it's not in a node, can I do it with vex, something like mask=-mask? how would you write it? and is it in an heightfield wrangle?

invert mask.JPG

Edited by anicg

Share this post


Link to post
Share on other sites

Heightfield Remap SOP, set layer to mask, and set Output Min/Max to 1/0

or

Heightfield Wrangle SOP

@mask = 1-@mask;

or

@mask = fit01(@mask, 1, 0);

or similar

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  

×