Multi-Input on Sublayer LOP, Is this correct?

   268   2   0
User Avatar
Member
48 posts
Joined: 7月 2018
オンライン
Hi.
I am preparing a network for Composition Arc.
This is part of it. // image1
At this point, the layers looked like this. // image2
It seems that the layer merged last becomes the parent-layer of all the others.
Is this the expected behavior for SideFX?

*The Using the Merge Node might seem a little strange, but this is what I want to do.
because, I’m planning to use ForEach to execute the SOP Import. // image3
This is because it’s unclear how many times the SOP Import process should be performed.
Edited by kurosaba - 2026年4月5日 23:32:35

Attachments:
image1.png (139.3 KB)
image2.png (54.4 KB)
image3.jpg (176.2 KB)

User Avatar
スタッフ
4574 posts
Joined: 7月 2005
オフライン
Yes, this organization of the layers is to be expected. Each connection to the multi-input of a sublayer LOP has to add a single sublayer to the stage. So if the stage connected to a sublayer node's multi-input has a bunch of sublayers on it, the layers need to be reorganized so that there is a single sublayer that can be added to the output stage that generates the same composed prims as the original stage. Making the strongest sublayer the new "root" layer, and all other sublayers as sublayers of this new root layer accomplishes these goals.

If you don't want the sublayers rearranged in this way by the Sublayer LOP, then the solution depends on what you _do_ want. If you want all the sublayers just added to the stage as separate sublayers, skip the Sublayer LOP completely. If you want all the sublayers connected to the multi-input made into sublayers on a common (but empty) root layer, just append a Configur eLayer LOP set to Start New Layer, and then append a Primitive LOP with the Primitive Paths left blank. This will create a new empty layer on the stage connected to the sublayer's multi-input. Then when the layers get reorganized, you'll have a single new (empty) sublayer on the stage's root layer, with a bunch of sub-sub-layers as (I assume) you intend.
User Avatar
Member
48 posts
Joined: 7月 2018
オンライン
Thank you.

If this behavior is as expected, I’ll be relieved.
I’m thinking of incorporating it into our workflow.

I want to make the layers created by SOP Import children of a single parent layer.
This is because we want to separate geometry info and other rule concepts as distinct layers for manage.

Thanks to you, I’m thinking everything will work out.
  • Quick Links