Jump to content

Setting bgeo file name from detail attribute


Recommended Posts

Hi guys

I have a file node writing out a bgeo of a geometry, and I need the filename and path to be taken from a detail attribute. Is this possible?

I have a detail attribute called filename, with the string that contains a path I selected earlier.

Thanks.

Link to comment
Share on other sites

As posted here:
https://www.sidefx.com/forum/topic/48739/?page=1#post-220104

Quote jlait:
In the expression language, there are two named functions to get detail attributes, `detail` and `details`. The first returns a float and takes an index into the attribute (so you can get components of a vector). The second returns a string and has no index.

CopyPaste this to your Geometry File parameter and fix the myname, to fit your name:
`details(0, "myname")`

Middle click on the Geometry File parameter to see how it evaluates.

  • Like 1
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...