Solaris - Layout Node with different Variants
3129 4 4- Klonkel
- Member
- 79 posts
- Joined: March 2016
- Offline
Hello,
So I am currently diving into lops, and managed to setup some sort of procedural way of creating USD assets, which are very easy to place in the scene with the layout LOP.
But I wonder if there's a way to randomly place variants with the layout LOP. So instead of having a seperate asset for each variant, can the layout lop randomly distribute (or procedurally) variants?
I already found the asset reference node of the asset inside the layout lop, but then you can only set it to 1 single variant, so not multiple while brushing random variants for example.
Kind regards,
Chris
So I am currently diving into lops, and managed to setup some sort of procedural way of creating USD assets, which are very easy to place in the scene with the layout LOP.
But I wonder if there's a way to randomly place variants with the layout LOP. So instead of having a seperate asset for each variant, can the layout lop randomly distribute (or procedurally) variants?
I already found the asset reference node of the asset inside the layout lop, but then you can only set it to 1 single variant, so not multiple while brushing random variants for example.
Kind regards,
Chris
- AhmedHindy
- Member
- 136 posts
- Joined: Oct. 2020
- Offline
- Mohanpugaz
- Member
- 146 posts
- Joined: June 2016
- Offline
If anyone trying to do this and couldnt find a way, here is what i figured out.
write you USD files with variants to disk(use the component builder for your advantage), then
- Create new asset database in the Layout Asset Gallery
- select a directory and give a name for your asset database
- you will get a fresh and empty gallery now
- click on the folder icon here to add your asset from disk
- in the directory input, select the parent directory of your asset you have written earlier, this should contain the .usd file inside of the dir in the same name as this dir, for example here i have my_assets_path/rock inside this rock dir i have a usd file called "rock.usd" if you use the component builder as i suggested it will write out in correct structure as needed.
- in the variant sets input, type the variant set name most cases you will need to type "geo" here
- hit ok. then your process begin, once done you will get each variant imported here in your database.
Hope that helps!
write you USD files with variants to disk(use the component builder for your advantage), then
- Create new asset database in the Layout Asset Gallery
- select a directory and give a name for your asset database
- you will get a fresh and empty gallery now
- click on the folder icon here to add your asset from disk
- in the directory input, select the parent directory of your asset you have written earlier, this should contain the .usd file inside of the dir in the same name as this dir, for example here i have my_assets_path/rock inside this rock dir i have a usd file called "rock.usd" if you use the component builder as i suggested it will write out in correct structure as needed.
- in the variant sets input, type the variant set name most cases you will need to type "geo" here
- hit ok. then your process begin, once done you will get each variant imported here in your database.
Hope that helps!
Edited by Mohanpugaz - July 6, 2023 03:17:58
Mohan Pugaz
movfx
https://www.instagram.com/movfx/ [www.instagram.com]
https://www.youtube.com/channel/@_movfx
movfx
https://www.instagram.com/movfx/ [www.instagram.com]
https://www.youtube.com/channel/@_movfx
- kumpa
- Member
- 44 posts
- Joined:
- Offline
Mohanpugaz
- in the variant sets input, type the variant set name most cases you will need to type "geo" here
Doesn't work for me, my variant set is called "model" and all it does is that it imports one asset with all the variants within.
Layout LOP is fantastic tool but a bit too wonky to be really useful.
Edited by kumpa - Jan. 21, 2024 16:52:22
- AnimGraphLab
- Member
- 66 posts
- Joined: May 2019
- Offline
It seems to be created by design, for single
.usd
assets that contain multivariants.You need a separate asset definition in the asset gallery database for each variant. Then you explicitly pick which variants the Layout LOP should be using with the current brush.
The reason for this arrangement is that point instancers in LOPs can't pick a prototype variant on a per-instance basis. Each variant selection must be presented as a separate prototype. So we adopted a similar arrangement for assets in the gallery. [www.sidefx.com]
Generalist. Transforming still images to 3D animation 🔮
Socials: https://linktr.ee/AnimGraphLab [linktr.ee]
Socials: https://linktr.ee/AnimGraphLab [linktr.ee]
-
- Quick Links