jon3de Posted May 7, 2015 Share Posted May 7, 2015 hi, Im following a tutorial on the side FX Website. I instanced boxes on a grid object. After that I changed the size of the instanced object with an attributvop. In the Tutorial it was done with an "addattrib" vop. In my case that didn´t worked. After some reading in the help file I found out that I have to use an Bind Export VOP to change the values. In this case "pscale". Is this the right way doing that stuff or did I missed something in the first vex construction? Im using houfini 14 apprentice. Thank you for any advice. kind regards Jon Quote Link to comment Share on other sites More sharing options...
anim Posted May 7, 2015 Share Posted May 7, 2015 it is the right way the way you see in the tutorial was for VOP SOP and similar, Attribute VOP and all CVEX based networks/wrangles don't have the same addattribute() function as you see there, they have different, but similarly named addattrib(), which in VOPs has Add Attribute alias which makes it confusing however it's function is to create an attribute and it's default value, but not populate it with per component values (as was the case before) to populate it with values you can use setattrib() in conjunction Bind VOP or Parameter VOP are shortcuts to create an attribute and write the values for currently processed components addattrib()/setattrib()/setattribtypeinfo() offer much more control over attribute creation and value assignment, which is not always required 1 Quote Link to comment Share on other sites More sharing options...
jon3de Posted May 7, 2015 Author Share Posted May 7, 2015 Thank you for the detailed explanation. 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.