Instancing Variants of an Asset in Solaris

   958   3   1
User Avatar
Member
129 posts
Joined: 9月 2021
Offline
Hi!

I'm following this [youtu.be] tutorial and ran into some issues.

I have a tree asset with several variants:


I then use an explore variants node to get all the variants from the asset. I've tried with and without the "Create References" option:


I then use a collection node to put all of these trees into a collection:


I now try to use an instancer to randomly scatter these variants onto some points. However, when I specify the prototype primitive as %tree_collection (I'm not actually sure what the % sign means, but that's what the guy does in the tutorial), it complains: "No prototype primitives found"


Any thoughts on how I can fix this?

Thanks!
Anson

Attachments:
2023-11-01_15-05.png (2.8 MB)
2023-11-01_15-05_1.png (2.7 MB)
2023-11-01_15-07.png (2.7 MB)
2023-11-01_15-09.png (2.6 MB)

User Avatar
Member
16 posts
Joined: 7月 2014
Offline
Two ways to solve this:
- let the 'Default Primitive Path' in the 'Collection' LOP at the default value '/collections'
- reference the collection in the 'Instancer' LOP with '%/tree_collection.collection:tree_collection'

You can look it up in the help 'Primitive matching patterns'
User Avatar
Member
129 posts
Joined: 9月 2021
Offline
stheo
Primitive matching patterns

Hi! Thanks for the help! The Primitive matching patterns [www.sidefx.com] documentation was helpful. I keep getting the error: "Unable to relocate reference: /tree"

Any thoughts what might be causing this?
User Avatar
Member
129 posts
Joined: 9月 2021
Offline
Ah, this seemed to fix it for me!





(At least for scattering the geo, I still haven't figured out how to get materials to come in properly, either as randomly selected variants or just at all ).

Attachments:
fix.png (88.2 KB)

  • Quick Links