Jump to content

most simple expression doesnt work


squardis

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


 

Link to comment
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!!

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