Jump to content
Sign in to follow this  
Masoud

In Bend SOP, how could I control bend value using external attribute?

Recommended Posts

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.

bend.JPG

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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...

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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 by Masoud

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

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

  • Like 1

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×