Skip to content

Instantly share code, notes, and snippets.

@morphingdesign
Created January 25, 2021 20:26
Show Gist options
  • Save morphingdesign/5534a8366447f9a87dced536c2334b0a to your computer and use it in GitHub Desktop.
Save morphingdesign/5534a8366447f9a87dced536c2334b0a to your computer and use it in GitHub Desktop.
Create and map a point attribute to a local variable in Houdini, as an alternative to using the Attribute Create SOP.
// Create custom variable
int pt_id = i@ptnum;
// Assign variable to point attribute
i@pt_id = pt_id;
// Map point attribute to local variable
addvariablename(0, "pt_id", "PT_ID");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment