Set Mesh as Variant

   2835   7   1
User Avatar
Member
68 posts
Joined: 8月 2021
オフライン
Hello everyone, I hope you are doing well.
I've been wanting to try solaris for a while now, and karma xpu has definitely decided to give it a chance.

I use a lot megascan to scatter things in houdini, but the plugin don't offer the "proxy" possibility for solaris (or so i don't know how to do it).

So I tried to find a workaround, but I am stuck, I cannot create a variants...

Is there a way to tell houdini to use each "Mesh" as a variant? (I know there is a "each" node in lops but i don't know how to use it in this case)

Attachments:
Capture d’écran 2021-12-12 191759.png (1.0 MB)

User Avatar
Member
12986 posts
Joined: 7月 2005
オフライン
Can I suggest you look at the "Component Builder" workflow as suggested by the SideFX team? https://www.sidefx.com/docs/houdini/solaris/component_builder.html [www.sidefx.com]
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
User Avatar
Member
6 posts
Joined: 3月 2020
オフライン
At first it was my idea, but it is super slow to enter into each component geometry, link each model, one by one….. I did a test, where I tried to speed up the process but it was still really slow to setup (I share you the screen shots of this).
But maybe I have found the solution, i just need to do one thing : I have a sop import connected to a subnet. Inside a subnet, i have a multiple nodes, one is a file geo.
What I want is basically a copy parameter from the Sopimport (which is connected to the subnet) to the FileGeo(which is inside the subnet) so the FileGeo have the same path to geo than the Sopimport. Of course I know I can do it by right click, copy parameter etc, but what I want is an expression, like « copy the file path of the first connected sopimport into the subnet », so whenever the sop import I connect to the subnet, the FileGeo inside it automatically use the same geo path

Attachments:
92FDD7A4-2A3E-4EA6-BD8D-477AA12A3A49.png (346.1 KB)
9D9C2ACB-E928-46D5-B93B-C02221BC4246.png (511.0 KB)

User Avatar
Member
12986 posts
Joined: 7月 2005
オフライン
Yeah, I can imagine wanting to build a data-driven workflows on top of the component builder stuff using PDG and such. Perhaps SideFX have done something like this? Fur example, for the Layout Asset Gallery ingestion tooling?
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
User Avatar
Member
68 posts
Joined: 8月 2021
オフライン
I should look in this direction I'm really not that far now but I need an expression.

Do you know if it's possible to replace the explicit name by something like "which is in input 1" ?

In this exemple, i don't want it to be ../Var7_LOD2/soppath
I would like to be ../input1/soppath
so its not related to a node in particular, but only related to the first input of my subnet...

Attachments:
Capture d’écran 2021-12-13 102334.png (33.5 KB)

User Avatar
Member
68 posts
Joined: 8月 2021
オフライン
Ok, i found solutions :

I modified the component geometry node:
- I can directly plug a SOP import to it
- It automatically create a proxy version for viewport
- I have access to the polyreduce % directly on the componentgeometry node

Now I have to find out how to use the for each node :
I have a lot of Sopimport node and I want to do something like : For each sopimport node, connect it to a component geometry node and then connect them to the componentgeometryVariant node

Attachments:
Capture d’écran 2021-12-13 154950.png (1.6 MB)
Capture d’écran 2021-12-13 155128.png (2.2 MB)

User Avatar
Member
209 posts
Joined: 11月 2013
オフライン
The expression you were looking for was `opinput(".",0)`
User Avatar
Member
6 posts
Joined: 3月 2020
オフライン
Hamilton Meathouse
The expression you were looking for was `opinput(".",0)`

More exactly, I was looking for

`chs(opinputpath("../../",0)/soppath)`
  • Quick Links