Created
January 25, 2021 20:26
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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