keywords: Houdini, Expression, VEX

Basic Notes

How to change point position:
Run Over: Points.

vector pos = @P;
if(pos.x < -3.5)
{
    @P = set(@P.x, @P.y + 5, @P.z);
}

How to remove primitive:
Run Over: Primitives.

if(@Frame > 5 && @P.z >10)
{
    removeprim(0, @primnum, 1);
}

How to add and set customized variables for points, vertices or primitives.

//add and set
i@my_var = 1;
//get
printf("%d\n", i@my_var);
Documents

HOUDINI help
https://www.sidefx.com/docs/houdini19.5/

Using VEX expressions
https://www.sidefx.com/docs/houdini/vex/snippets.html

Parameter expressions
https://www.sidefx.com/docs/houdini/network/expressions.html

Popular Built-in VEX Attributes (Global Variables)
https://stephanosterburg.gitbook.io/scrapbook/untitled/popular-built-in-vex-attributes-global-variables

Blogs

【Houdini】 表达式与VEX变量
https://www.yuelili.com/houdini-expression-and-vex-variable/

VEX Attribute Glossary
https://wiki.johnkunz.com/index.php?title=VEX_Attribute_Glossary

Houdini: Remove Outside Pieces Using Python
https://yudaitamamura.artstation.com/blog

Personal Notes (Tricks)

Killian Timsit
https://gist.github.com/killiantimsit

VEX for artists
https://github.com/kiryha/Houdini/wiki/vex-for-artists


“How can I be substantial if I do not cast a shadow? I must have a dark side also If I am to be whole.” ― C.G. Jung, Modern Man in Search of a Soul