Jump to content

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


Gecoblack

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...