davidyannick Posted March 25, 2022 Share Posted March 25, 2022 I'd like to put my name attribute (prim atribute) in the Geometrey filename (ie : @name.bgeo.sc ....) of file cache or rop geometry, do you have any suggestion please ? Thanks Quote Link to comment Share on other sites More sharing options...
Alain2131 Posted March 26, 2022 Share Posted March 26, 2022 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") Quote Link to comment Share on other sites More sharing options...
davidyannick Posted March 28, 2022 Author Share Posted March 28, 2022 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.