Jump to content

trying to learn more VEX.. but how would i do this ...


carthick

Recommended Posts

 

Trying to learn more complicated VEX .. this is an example..

and the color here is Cd=  {1,0,.2}

as you can see below, I did a @Cd.b==0.2 and made a group .**this works **

 

but the question is ..

how do  i do something more complicated. i want to create a group with this

(@Cd.r==1) && (@Cd.g==0) && (@Cd.b==0.2)

2020-06-12_18h11_56.thumb.png.e552f8073b759214c55a8ddc2b982a7b.png

 

 

but see the error, when i try >> (@Cd.r==1) && (@Cd.g==0) && (@Cd.b==0.2)

2020-06-12_18h20_44.thumb.png.bab6ae0ab62056034d1c716915f6a79a.png

 

ps: this is only an example. i want to do a little but more complicated VEX without a wrangle or without multiple nodes.. thanks in advance

 

 

 

 

Link to comment
Share on other sites

well, this is not VEX, it's a group syntax
have a look at "Group syntax" in the help

this seems to work @Cd.r=1,@Cd.g=0,@Cd.b=.2
and you don't need "==" because it's not VEX

and this is VEX (in a wrangle)

if(@Cd=={1,0,0.2})@group_mygroup=1;

 

Edited by bunker
  • Like 2
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...