Jump to content
squardis

most simple expression doesnt work

Recommended Posts

Hi,Im using this expression but it doesnt work in the attribute wrangle.
Cd color is promoted to Primitive. wrangle is set to prim. color exist:

if(Cd.r>0.1)
@Cd={1,0,0};

 

tried also: 

if (Cd.r > 0.1)

{
@Cd={1,0,0};

}

 

wrangle gives a error.

- ....snippet1: reference to indentified variable: Cd

invalid subscript for type:void.r

anyone?thnx


 

Share this post


Link to post
Share on other sites

You forgot the @ in the if test

Try this : 

if (@Cd.r > 0.1)
{
    @Cd={1,0,0};
}

 

  • Like 1

Share this post


Link to post
Share on other sites
1 minute ago, l0op1ng said:

You forgot the @ in the if test

Try this : 


if (@Cd.r > 0.1)
{
    @Cd={1,0,0};
}

 

thnx thnx thnx for the fast reply,
I checked if i did and the last time it was exactly the same :)
but it didnt refresh... how to refresh inside?

 

yeahhh!!

Share this post


Link to post
Share on other sites

ctrl enter it is :) thnx again

i meant to refresh the wrangle ( let it compile the code)

Edited by squardis

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

×