New Attribute Syntax in Houdini 15

If you weren’t paying attention, Houdini 15 introduced new syntax for its local variables. No, no, the old way of accessing them is there but there are now @attribute alternatives to all local variables. So instead of using $T or $F, you can use @Time or @Frame respectively. The capitalization freaks me out a bit but not a big deal.

You can use @Cd.g to get the green component or @P to get the x, y, z positions or if you need the individual values, you would just use dot notation such as @P.x to get just the x value. Our familiar buddy $PT has its alternative @ptnum.

Going a little further, how would you get at the bounding box information? In HScript, we would have done the familiar $BBX, $BBY, $BBZ. In the new syntax, you do relbbox(@P).x, relbbox(@P).y, relbbox(@p).z. Yes, I know what you are thinking. It’s not that bad.

Get used to the @ sign because according to Side Effects, future versions of Houdini will move toward having users use VEX to modify geometry instead of allowing HScript expressions to modify local variables, because VEX is much faster.

 

vex-attribs01

 

Share:
990adjustments

990adjustments

I am a motion designer & developer based out of South Florida. When not designing or animating pixels, I wrangle some code. If all else fails, I watch Twilight Zone, I Love Lucy, or Three's Company reruns.

Leave a Reply