squardis Posted July 14, 2016 Share Posted July 14, 2016 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 Quote Link to comment Share on other sites More sharing options...
l0op1ng Posted July 14, 2016 Share Posted July 14, 2016 You forgot the @ in the if test Try this : if (@Cd.r > 0.1) { @Cd={1,0,0}; } 1 Quote Link to comment Share on other sites More sharing options...
squardis Posted July 14, 2016 Author Share Posted July 14, 2016 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!! Quote Link to comment Share on other sites More sharing options...
l0op1ng Posted July 14, 2016 Share Posted July 14, 2016 Sorry, what do you mean by : how to refresh inside ? 1 Quote Link to comment Share on other sites More sharing options...
squardis Posted July 14, 2016 Author Share Posted July 14, 2016 (edited) ctrl enter it is thnx again i meant to refresh the wrangle ( let it compile the code) Edited July 14, 2016 by squardis Quote Link to comment Share on other sites More sharing options...
l0op1ng Posted July 14, 2016 Share Posted July 14, 2016 Haha yup !!! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.