natnat Posted February 20, 2017 Share Posted February 20, 2017 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 Quote Link to comment Share on other sites More sharing options...
acey195 Posted February 20, 2017 Share Posted February 20, 2017 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. Quote Link to comment Share on other sites More sharing options...
natnat Posted February 20, 2017 Author Share Posted February 20, 2017 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 Quote Link to comment Share on other sites More sharing options...
acey195 Posted February 20, 2017 Share Posted February 20, 2017 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. Quote Link to comment Share on other sites More sharing options...
natnat Posted February 20, 2017 Author Share Posted February 20, 2017 hmmm... Quote Link to comment Share on other sites More sharing options...
acey195 Posted February 20, 2017 Share Posted February 20, 2017 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. Quote Link to comment Share on other sites More sharing options...
vtrvtr Posted February 20, 2017 Share Posted February 20, 2017 Sorry if I'm misunderstanding your problem, but you can control the distance per primitive like this: The promote is just there because you mentioned you promoted from points to prim attributes 1 Quote Link to comment Share on other sites More sharing options...
natnat Posted February 20, 2017 Author Share Posted February 20, 2017 (edited) 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 February 20, 2017 by natnat 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.