Jump to content
defc0n1

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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×