Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

natnat

attribute transfer and promote problems

hello community,

i got a weird problem. 
i'm promoting some point attributes from a colorramped spline to a grpselection on a sweep. at first i do an attribute transer input is the grpselektion and an attribute create node. then i promote it through to my polyextrude. attribute promote = from point to primitive. 
when i open up the spredsheet for my polyextrude, i see my attribute, but i can not use it to manipulate the translation with this variable... 
does anybody know what i´m doing wrong?

greetz natnat 

Share this post


Link to post
Share on other sites

it depends on how you are controlling the translation.

if you are using local variables like: $TRANSLATION
you need to make sure that local attribute is actually transferred with the attrib transfer.
the best way to enforce this is by adding an attributecreate SOP on the left side of the attrib transfer with the same attribute name.

Share this post


Link to post
Share on other sites

this is my actuall problem, i get the width from my colorramp per point 0-1 
i got my sweep where i select my polys to extrude - in my attribute transfer i got source grp clear and type primitive. I also got point selected and width to reference on. copy local vars = selected

in the promote node i just switch the point class to primitive and as u can see, with the poly extrude selected i get some attributes for my width attribute.
now i just want to tell the polyextrude node, to extrude the selected polys based on their width attribute. something like $WIDTH*2

Bildschirmfoto 2017-02-20 um 13.41.20.png

Share this post


Link to post
Share on other sites

Ahh well I am pretty sure poly extrude like you have implemented it, does even support the use of local attributes.
You may need to extrude it by a static value and then do the variation in displacement afterwards using other nodes/wrangles.

 

Share this post


Link to post
Share on other sites

Alternatively you can put it in a for loop and directly parameter reference the displacement for every primitive or every value.

In the long term you probably want to avoid using forloops for this kind of purpose though.

Share this post


Link to post
Share on other sites

Sorry if I'm misunderstanding your problem, but you can control the distance per primitive like this:

 

cWFZx7X.png

The promote is just there because you mentioned you promoted from points to prim attributes

 

1 person likes this

Share this post


Link to post
Share on other sites

that´s it :) sick, so easy :)
first modelling project in houdini^^
thanks a lot! vtr vtr

just had to feed it into the distance scale

 

Edited by natnat

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