Jump to content
carthick

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

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

 

 

 

 

Share this post


Link to post
Share on other sites
Posted (edited)

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

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

×