Jump to content

point position in Y to Cd


Recommended Posts

You can use a point wrangle for that and type code. This will make points lower than 0.1 on 1 the color red.

if(v@P.y<0.1){v@Cd = set(1,0,0);}

 

Link to comment
Share on other sites

You can also run a point wrangle to set a detail attribute for the minimum value:

setdetailattrib(0, "minY", @P.y, "min");



Then followed by another point wrangle to read that & assign red to the point that matches that value in Y:

float min = detail(0, "minY", 0);

if(@P.y == min) @Cd = {1,0,0};

 

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...