Hello,
I have a switch node that is switching between a bunch of different models depending which frame it is, these models have different name attributes assigned to them -- for example: @name = "pebble_1"; for model 1 and @name = "rock_25"; for model 2. I want to take the current name attribute that it is currently switched to and add that to a geometry rop as a name of the file that is being exported. Anybody have any ideas?
Vincent Griffith
Using the name attribute to drive file naming
2955 2 0- VGriffith
- Member
- 132 posts
- Joined: Sept. 2018
- Offline
- jparker
- Member
- 314 posts
- Joined:
- Offline
I assume your "name" attribute is the same for all geometry pieces? If so, you can either promote it as a detail attribute or access the first primitive with an expression in your ROP output file path:
Or:
/path/to/hip/geo/`details("/obj/geo1/switch1", "name")`.bgeo
Or:
/path/to/hip/geo/`prims("/obj/geo1/switch1", "name", 0)`.bgeo
- Angel Negron
- Member
- 32 posts
- Joined: Oct. 2014
- Offline
-
- Quick Links