Jump to content
noc2

Controlling Mountain SOP's attributes with point attributes

Recommended Posts

Posted (edited)

Hi there;

I'm kind of confused with the way mountain SOP works. As I've read on some of the topics here on this forum, the mountain SOP doesn't recognize (at least as of version 16) point attributes and that's what I'm trying to get it to do essentially.

I've also read here that the VOP network that the SOP is comprised of, due to its very construction, recognizes point attributes with a prefix of "parm_" instead of their raw names. No matter what I've tried so far, I haven't been able to pass a point attribute to control say, the "height" attribute or "gain" attribute with an expression like: point(0, @ptnum, "attrib", 0)

Any help would be wildly appreciated :)

Cheers;

AJ

Edited by noc2

Share this post


Link to post
Share on other sites

Hey!

Not sure what you really want to achieve but I found that the mountain node react to the attribute @height.

1. Before the moutain node, use a wrangle node and write your code for the height.

Exemple for a grid 50 by 50

if(@ptnum >= 1250) @height = .5;
else @height = 1;
 

2. After that, you dont need to write anything in the mountain node, it will already apply the change for the height

 

Let me know if this is what you wanted to do.

 

Cheers

Share this post


Link to post
Share on other sites

The @height works because the HDA uses a Bind to import that attribute. The other parameters can be overridden using the @parm_ prefix.

Untitled-1.thumb.jpg.749b90a0b626e8187e25fbab79776587.jpg

  • Thanks 1

Share this post


Link to post
Share on other sites
Posted (edited)

Thanx so much your replies, morn66 and Atom. Now I get the picture. What I was intending to do was to displace the certain points on a piece of geometry according to a predetermined per point height attribute, and now I know that it is literally "height" :) But now, I'm having trouble trying to figure out how I can keep the displacement centered around the undisplaced point positions :-/ Attribute blur just doesn't help at all. The height attribute was created on the points in a corners group created automatically by a previous polybevel sop. You can see in the attached image that the displacement always goes above the median when "center Noise" is not checked or inside when checked. How can I tell Houdini to have the displacement take place along the median point positions? Do I need to dive inside the vop net and fiddle with the vop nodes?

Thank you :)

image.thumb.png.e6aec966ff67f289d13bb644dd77dd03.png

Edited by noc2

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

×