Jump to content

color prims by attribute


Recommended Posts

P=Create a grid, drop Attribute Wrangle, set Attribute Wrangle mode to primitives:
 

@Cd = 0;
if (@P.x > 0){
    @Cd = 1;
    }

Here is we select primitives which have @P.x grater than 0. In your case, it would be @P = 0, but you would not see the changes on a flat grid that's why I modify initial task a bit.
Take a look at a VEX basics tutorial. Maybe it would be interesting for you.

Edited by kiryha
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...