Masoud Posted July 10, 2019 Share Posted July 10, 2019 Hi guys; I would like to control bend value of "Bend SOP", using an attribute, So I add a point attribute (called bend), but it doesn't works. Quote Link to comment Share on other sites More sharing options...
vicvvsh Posted July 10, 2019 Share Posted July 10, 2019 Hi, as i know this node don't read attributes like that. But you can use point expression in the Bend parameter point(opinputpath(".", 0), 0, "bend", 0) this expression read point attribute "bend" from 0 point and return it value. Quote Link to comment Share on other sites More sharing options...
Masoud Posted July 11, 2019 Author Share Posted July 11, 2019 21 hours ago, vicvvsh said: Hi, as i know this node don't read attributes like that. But you can use point expression in the Bend parameter point(opinputpath(".", 0), 0, "bend", 0) this expression read point attribute "bend" from 0 point and return it value. But this will get just attribute value of point zero... Quote Link to comment Share on other sites More sharing options...
vicvvsh Posted July 11, 2019 Share Posted July 11, 2019 1 hour ago, Masoud said: But this will get just attribute value of point zero... Is the value of bend attribute different at each point? Provide .hip file if you can. It is not clear right now what you want. Quote Link to comment Share on other sites More sharing options...
Masoud Posted July 12, 2019 Author Share Posted July 12, 2019 Please take a look at my scene : bend.hip Quote Link to comment Share on other sites More sharing options...
vicvvsh Posted July 12, 2019 Share Posted July 12, 2019 2 hours ago, Masoud said: Please take a look at my scene : bend.hip You can't change bend parameter of bend sop like in your scene but you can with expression. bend_01.hip Quote Link to comment Share on other sites More sharing options...
Masoud Posted July 13, 2019 Author Share Posted July 13, 2019 (edited) 15 hours ago, vicvvsh said: You can't change bend parameter of bend sop like in your scene but you can with expression. bend_01.hip (First of all, thank you for the hip file) SO you mean in some Houdini SOPs, we can't use "per points" values to vary the results on each point, right? if so, can I use "foreach point" loops? Edited July 13, 2019 by Masoud Quote Link to comment Share on other sites More sharing options...
vicvvsh Posted July 14, 2019 Share Posted July 14, 2019 21 hours ago, Masoud said: if so, can I use "foreach point" loops? For what? What are you trying to achieve and what is your end goal? Quote Link to comment Share on other sites More sharing options...
Aizatulin Posted July 14, 2019 Share Posted July 14, 2019 Hi Masoud, have you read my answer on sidefx forum? You can edit the bend wrangle inside the bend node. Just muliply/add your attributes to the related variables. The attributes can be set for each points (check my example). bendZ.hipnc 1 Quote Link to comment Share on other sites More sharing options...
Masoud Posted July 15, 2019 Author Share Posted July 15, 2019 float theta = @bend * ch('rotation'); Hi Aizatulin, thank you 1 Quote Link to comment Share on other sites More sharing options...
Masoud Posted July 15, 2019 Author Share Posted July 15, 2019 On 7/14/2019 at 9:54 AM, vicvvsh said: For what? What are you trying to achieve and what is your end goal? I want to bend each point based on it's "bend" attribute value. 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.