Hallam Roberts
hroberts
About Me
Connect
LOCATION
Not Specified
ウェブサイト
Houdini Engine
Availability
Not Specified
Recent Forum Posts
global vex include 2024年2月29日17:14
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);
```
```
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);
```