davidyannick Posted December 13, 2019 Share Posted December 13, 2019 (edited) I'm trying to make a cannon, but here is my problem, each piece are bevelled but top one have a different bevel, I put a switch but the switch never occurs, any idea plz ? thanks hdni_old_cannon.hiplc Edited December 13, 2019 by davidyannick bad files Quote Link to comment Share on other sites More sharing options...
Sophie Posted December 13, 2019 Share Posted December 13, 2019 Hey, when I load your file it doesn't seem to be working properly. However, in your switch node, you're using @class%2==0. As far as I know you can't use attributes in a switch like that. Try getting the attribute like this: prim("../foreach_begin2", 0, "class", 0) % 2 https://www.sidefx.com/docs/houdini/expressions/prim.html Hope it works! Quote Link to comment Share on other sites More sharing options...
davidyannick Posted December 13, 2019 Author Share Posted December 13, 2019 8 minutes ago, Sophie said: Hey, when I load your file it doesn't seem to be working properly. However, in your switch node, you're using @class%2==0. As far as I know you can't use attributes in a switch like that. Try getting the attribute like this: prim("../foreach_begin2", 0, "class", 0) % 2 https://www.sidefx.com/docs/houdini/expressions/prim.html Hope it works! it works thanks 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.