Solaris - Layout Node with different Variants

   3128   4   4
User Avatar
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
https://www.youtube.com/@Klonkel
User Avatar
Member
136 posts
Joined: Oct. 2020
Offline
I was just going to ask the same thing, maybe we should try "reference" LOP -> "explore variants" -> then brushing, or using a collection after "explore variants" or something
https://www.youtube.com/channel/UC4NQi8wpYUbR9wLolfHrZVA [www.youtube.com]
User Avatar
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!
Edited by Mohanpugaz - July 6, 2023 03:17:58

Attachments:
Screenshot 2023-07-06 122337.png (69.3 KB)
Screenshot 2023-07-06 122543.png (57.2 KB)
Screenshot 2023-07-06 123353.png (19.9 KB)
Screenshot 2023-07-06 123353.png (19.9 KB)
Screenshot 2023-07-06 123254.png (85.7 KB)
Screenshot 2023-07-06 123456.png (13.2 KB)
Screenshot 2023-07-06 123506.png (14.2 KB)
Screenshot 2023-07-06 123706.png (419.9 KB)
Screenshot 2023-07-06 123951.png (627.4 KB)
Screenshot 2023-07-06 123606.png (26.4 KB)
Screenshot 2023-07-06 122601.png (18.7 KB)

Mohan Pugaz
movfx
https://www.instagram.com/movfx/ [www.instagram.com]
https://www.youtube.com/channel/@_movfx
User Avatar
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
  • Quick Links