Jump to content
Gecoblack

How to export a struct for each class' items of a geometry

Recommended Posts

Hi,

I was wondering if could be possible to define a struct in the outer code of the snippet and export this data for each class' items of a geometry (per point, prims, etc...)?

Below is an example of a Wrangle running over Points with the "outer code" from wrangle/attribvop/snippet exposed as a parameter

VEXpression:

myStruct example = {someRandomNumber, someRandomVector, ...};
// How to export "example" for each point?

Outer Code:

struct myStruct
{
    float someFloat;
    vector someVector;
    // and some other variables
}

Is it even possible? Where Houdini could store those pieces of information? The spreadsheet could only represent default data types right?

Am I missing something?

 

Thank you!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×