We take a look at how to manage layers and collections from within Maya’s new Render Setup Window. In the video, George shows how to create a render layer from scratch, then add collections to that layer. He then adds objects such as geometry by dragging them into the window and by using expressions.
- [Voiceover] So now let's dig a little bit deeper and take a look at how to create our own layers in collections. So, I'm going to open up the Render setup window and then I'm going to arrange my desktop so I can actually see things here. So I'm going to go into a four view here and I'm going to set this to here to a camera view. Now, in the Render setup window, we have our basic master layer here. Now if I want to create a layer, all I have to do is go down here and hit that plus sign.
And that brings up a layer and if I want I can type in any name that I want. So if I wanted to I could call this Render layer A, and hit Enter. Now this layer is set up but it doesn't have anything in it. So if I were to set that layer as visible notice how nothing happens here so my master layer has everything and this layer, well, it right now has nothing. So we add things to this layer by using what are called collections.
Now we can do this is a couple of ways. All we have to do is right click over this and do Create Collection. And when I do, notice how stuff pops up in the property editor and I get a collection here. Now if I want I can name it or if I want to rename it later all I have to do is double click on that name. So we're just going to leave it at collection 1 and let's go over to the property editor here. Now what we can do here is we can filter the objects in our scene by type of object.
We can also add to the collection by either dragging stuff into this window or creating an expression. So let's show you how to do this. So I'm going to go ahead and make this the visible layer, and notice how there's nothing in it. But I'm going to go into my outliner. So from my outliner, I'm going to select some of the objects in my scene. So let's select this space ship. Now this is a group containing a couple of different objects that comprise the space ship, and all I have to do is middle click and drag that into this window.
And when I do, notice how this space ship shows up. So now this layer contains just the space ship. So if I go to my main layer, here is my main layer and here is my new layer and that just has the space ship. Now if I want, I can continue to drag things in. So if I were to say, select the hangar, middle click and drag that in, you can see that now I've got the hangar and the object. Now I can also do that for lights.
So, if I wanted to I could say select this main spot, middle click and drag that in there and again you can see how that spotlight comes in. Now if I want to, I can also add and remove things from this list by just clicking these buttons. So if I want to remove that light, I can do it. If I select the hangar I can remove it and I can also remove that space ship. Another way to do this is to use expressions. Now this is probably the more efficient way of doing it because if you have your expressions set up correctly you can add objects to the scene and they'll automatically show up.
So probably the easiest expression to do is just to type in an asterisk. If I do that, it selects everything in the scene and now I have everything in my scene in my layer. If I want to isolate that a bit more, I can back space over that and type in say something like space asterisk and that will select everything with the word space in front of it and that would be the space ship. If I wanted to create a naming scheme that has all the geometry with a certain tag, I could do that.
Or I can type these in sequence. So I have a global here from my space ship. All I have to do is hit the space key and type in another one so if I can S-C-A-F-F * that'll get my scaffolding. There we go, and then if I want to I can continue to do this so I could do say, H-A-N-G for hangar, H-O-S-E for hoses, and so on. So that brings all of these in.
Now, if I were to add more objects into the scene that contain these names, they will show up in this layer and that's the reason why you want to use something like expressions. So to sum up, we can create layers using the Render setup window but those layers initially do not have anything in them. We add stuff to those layers by using collections.