|
1 |
| -# vex_tutorial |
2 |
| -Extensive tutorial showing possibilities of VEX scripting language inside Houdini |
| 1 | +# VEX TUTORIAL |
| 2 | +## Extensive tutorial showing examples of usage of VEX scripting language inside SideFX Houdini |
| 3 | +<p align="right">by Juraj Tomori</p> |
| 4 | + |
| 5 | +### How to use |
| 6 | +You can clone, or [directly download](https://github.com/jtomori/vex_tutorial/archive/master.zip) this repository.<br> |
| 7 | +It contains **examples.hipnc** and **vex/include/myLib.h** files which are full of various examples with explanations in comments.<br> |
| 8 | +Alternatively you can use this page for quick looking at the topics covered and some of the code that I include here as well. I am not including here all of the code since sometimes it might not make a lot of sense outside of Houdini. |
| 9 | + |
| 10 | +### Topics |
| 11 | +* debugging, utputing text with printf() |
| 12 | +* hand editing of values in Geometry Spreadsheet, lock, delta lock |
| 13 | +* external vex files/libraries referencing |
| 14 | +* void functions |
| 15 | +* variable casting |
| 16 | +* function casting |
| 17 | +* accessing parameters from myself, another node, easy creation |
| 18 | +* accessing attributes from myself, another inputs |
| 19 | +* accessing volumes, from another inputs as well |
| 20 | +* function overloading |
| 21 | +* vector swizzling |
| 22 | +* accessing values in vectors, matrices, arrays |
| 23 | +* arrays: slicing, reversing, saving into attribs, changing file path example |
| 24 | +* escaping strings |
| 25 | +* checking for existence of attributes, auto attribute creation |
| 26 | +* optransform usage |
| 27 | +* accessing / changing prim intrinsics - vdb, prims, packed, abc |
| 28 | +* writing vex snippets, inlines in vops |
| 29 | +* structs, struct functions - limited OOP |
| 30 | +* functions returning an array, array of structs |
| 31 | +* including *math.h* - useful constants, xform orders |
| 32 | +* DOPs - accessing geometry, volumes, bindings, gas field vop, gas field wrangle, sop solver |
0 commit comments