Jump to content

Filecache with attribute name


Recommended Posts

To fetch an attribute from geometry in HSCRIPT, you can use the various point(), prim(), detail() functions.
Note that the syntax is different from their VEX counterparts.
Also, and this is important for you, you need to use a different function for string attributes. points(), prims(), details(). (it reads as : point string, prim string, detail string)

So, for you, this would be the code

`prims(0, 0, "name")`.bgeo.sc // primString(input 0, primitive 0, attribute "name")

 

Link to comment
Share on other sites

On 26/03/2022 at 6:40 PM, Alain2131 said:

To fetch an attribute from geometry in HSCRIPT, you can use the various point(), prim(), detail() functions.
Note that the syntax is different from their VEX counterparts.
Also, and this is important for you, you need to use a different function for string attributes. points(), prims(), details(). (it reads as : point string, prim string, detail string)

So, for you, this would be the code


`prims(0, 0, "name")`.bgeo.sc // primString(input 0, primitive 0, attribute "name")

 

ok thanks for your help :)

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...