Hallam Roberts

hroberts

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

global vex include Feb. 29, 2024, 5:14 p.m.

I'm very late, but one approach I saw in LABS nodes is using `chs("../code_string")` in VEX. This causes VEX to evaluate the string as if it was actual VEX code in the wrangle. For example, add this to a detail wrangle:

```
vector addToPos(vector p) {
return p + {1, 2, 3};
}
```

Then in any other wrangle you can run that code with chs():

```
// Append the code string and run it (like #include)
`chs("../your_wrangle/snippet")`

v@P = addToPos(v@P);
```