Krion Posted September 26, 2018 Share Posted September 26, 2018 Hello, I have a question about putting two expressions in one parameter. Is this possible? See screenshot. I also want to rotate the blue. (maybe even in a different in a different direction like -180) Somebody said: you'll need to type two separate lines. @Cd.r = whatever; @Cd.b = whatever; But when I do that in the "Edit expression" thing of my rotation parameter.. (because i can't just type a second line just in the parameter? or can i?) But everything dissapears when i do that With ; after the lines and without.. What do i do wrong? Thanks in advance!Alien uitwerking-odforce.hipnc Quote Link to comment Share on other sites More sharing options...
StepbyStepVFX Posted September 27, 2018 Share Posted September 27, 2018 (edited) What you are trying to do is a bit "cheating" : you use the attribute color in your expressions to "filter" the objects you want to rotate. If you want to do it that way, maybe just sum the two expressions : if it is fully blue, red and green will be zero and weight nothing in your sum while blue pieces will have full weight and let you evaluate your rotation parameter to the number of degrees you want. A better way to do it with the copy stamp is to add an orient attribute on your template points (or an up vector and a normal if you don't know how to build an orient), based on you color, using a point wrangle, where you can put as much expressions and "tests" (if (@Cd.r == 1) {@N = blablabla} ) as you want. Then the copies will be oriented properly. Help : http://www.sidefx.com/docs/houdini/copy/instanceattrs.html Edited September 27, 2018 by StepbyStepVFX 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.