when i use “struct” type to define customer data type in the node of attribute wrangle, i have fonund something wrong. plz give me some ideas.
my codes:
//////////
struct st{
float x;
}
Syntax error, unexpected struct.
vex language does not support "struct" data type ? houdini-version-17.327
3720 6 0- lnlidawei
- Member
- 5 posts
- Joined: Nov. 2016
- Offline
- jsmack
- Member
- 8042 posts
- Joined: Sept. 2011
- Offline
- tamte
- Member
- 8810 posts
- Joined: July 2007
- Offline
- BabaJ
- Member
- 2129 posts
- Joined: Sept. 2015
- Offline
Thanks for this tip tamte. You've helped me indirectly.
I've always wondered why I couldn't include a struct directly and had to put it in a ‘header’ file and use #include.
I've always wondered how I might also be able to ‘include’ all the needed the self-written functions within the hip instead of separately in a header file.
So by creating my own wrangle asset (copying with asset manager of default wrangle) and saving with outercode promoted(and also any amount of defined functions per definition/my asset wrangle ('type').
I can now have my functions ‘follow’ the hip around without having to manage header files. At the same time have two blocks of code. One for the main logic of the operations and the other with the defined functions to be used in the main block.
Also, ‘solves’ the how to create an asset with self-contained wrangle functions that don't need access/reference to external header files.
Cool.
I've always wondered why I couldn't include a struct directly and had to put it in a ‘header’ file and use #include.
I've always wondered how I might also be able to ‘include’ all the needed the self-written functions within the hip instead of separately in a header file.
So by creating my own wrangle asset (copying with asset manager of default wrangle) and saving with outercode promoted(and also any amount of defined functions per definition/my asset wrangle ('type').
I can now have my functions ‘follow’ the hip around without having to manage header files. At the same time have two blocks of code. One for the main logic of the operations and the other with the defined functions to be used in the main block.
Also, ‘solves’ the how to create an asset with self-contained wrangle functions that don't need access/reference to external header files.
Cool.
Edited by BabaJ - Sept. 24, 2019 10:08:07
- lnlidawei
- Member
- 5 posts
- Joined: Nov. 2016
- Offline
- lnlidawei
- Member
- 5 posts
- Joined: Nov. 2016
- Offline
- lnlidawei
- Member
- 5 posts
- Joined: Nov. 2016
- Offline
BabaJthank you .
Thanks for this tip tamte. You've helped me indirectly.
I've always wondered why I couldn't include a struct directly and had to put it in a ‘header’ file and use #include.
I've always wondered how I might also be able to ‘include’ all the needed the self-written functions within the hip instead of separately in a header file.
So by creating my own wrangle asset (copying with asset manager of default wrangle) and saving with outercode promoted(and also any amount of defined functions per definition/my asset wrangle ('type').
I can now have my functions ‘follow’ the hip around without having to manage header files. At the same time have two blocks of code. One for the main logic of the operations and the other with the defined functions to be used in the main block.
Also, ‘solves’ the how to create an asset with self-contained wrangle functions that don't need access/reference to external header files.
Cool.
-
- Quick Links