Hello!
I'm following the component builder tutorial. I can see adding extra stuff as an extra layer can be quite useful.
Let's say we have a lamp asset. I added a light as extra layer. Now in layout, I reference in the lamp asset, how can I control the lamp light on and off? Basically is there way to control this extra layer?
Thanks!
How to utilize Component Builder extra layer
1111 2 2- NMVHS
- Member
- 21 posts
- Joined: May 2015
- Offline
- BryanRay
- Staff
- 43 posts
- Joined: March 2022
- Offline
The extra layer will be expressed in the Scene Graph as another descendant of the asset. For instance, if you had 'light1' in your extra layer, then your component output (assuming otherwise default configuration) should have descendants called 'geo', 'mtl', and 'light1'. You could control the light using a Prune, Light Edit, or Light Mixer, just like any other primitive.
Knowing the standard prim path outputs, you could build a primitive pattern to select the extra layers. For instance:
/componentoutput1/* ^(/componentoutput1/geo /componentoutput1/mtl)
That selects everything under /componentoutput1 except for 'geo' and 'mtl'.
Knowing the standard prim path outputs, you could build a primitive pattern to select the extra layers. For instance:
/componentoutput1/* ^(/componentoutput1/geo /componentoutput1/mtl)
That selects everything under /componentoutput1 except for 'geo' and 'mtl'.
- NMVHS
- Member
- 21 posts
- Joined: May 2015
- Offline
BryanRayAha, I forgot to check the scene graph. Thanks Bryan!
The extra layer will be expressed in the Scene Graph as another descendant of the asset. For instance, if you had 'light1' in your extra layer, then your component output (assuming otherwise default configuration) should have descendants called 'geo', 'mtl', and 'light1'. You could control the light using a Prune, Light Edit, or Light Mixer, just like any other primitive.
Knowing the standard prim path outputs, you could build a primitive pattern to select the extra layers. For instance:
/componentoutput1/* ^(/componentoutput1/geo /componentoutput1/mtl)
That selects everything under /componentoutput1 except for 'geo' and 'mtl'.
-
- Quick Links