Using the name attribute to drive file naming

   2895   2   0
User Avatar
Member
132 posts
Joined: 9月 2018
Offline
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
Edited by VGriffith - 2021年7月10日 19:42:53
User Avatar
Member
311 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:

/path/to/hip/geo/`details("/obj/geo1/switch1", "name")`.bgeo

Or:

/path/to/hip/geo/`prims("/obj/geo1/switch1", "name", 0)`.bgeo
User Avatar
Member
32 posts
Joined: 10月 2014
Offline
HI, I'm trying to use this same expression on a ROP node VIA DEADLINE, doesn't seem to work any idea why?
Edited by Angel Negron - 2024年5月31日 01:28:56
  • Quick Links