Beer glass scene creation
This course contains a little bit of everything with modeling, UVing, texturing and dynamics in Maya, as well as compositing multilayered EXR's in Photoshop.
# 1 07-03-2012 , 03:29 AM
djwaterman's Avatar
Registered User
Join Date: Nov 2011
Location: Sydney
Posts: 196

Just don't understand layers

This is starting to really frustrate me. I must be missing something because the way I expect layers to work is counter intuitive to how they actually work.

I have an object in a layer and I create a new layer, I go back to the first layer and select that object and right mouse "remove selected". Then I go to the new layer and "add selected".

I toggle the new layer and see the object flick on and off, terrific, it must have moved into that layer.

But then if I toggle the first layer off, the object disappears even though the new layer is meant to display it.

The membership box will show that the original layer still has some connection with the object.

Anyway it's all Topsy-turvy and seems to run on some kind of negative-land logic that I can't fathom.

Can anyone point me to a clear explanation, tutorial or advise me to the correct process?

# 2 07-03-2012 , 04:25 AM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374
I'm not sure if this is your case, but the hierarchy and connections influences how things can be in layers. For example, you can't have a parent and a child be in different layers (as far as I know), and if you put a group in a layer, all the children will be in that layer too (which makes more sense to me than C4D's layer system). Something like this may or may not be screwing with your membership here.

# 3 07-03-2012 , 06:28 AM
ctbram's Avatar
Moderator
Join Date: Jan 2004
Location: Michigan, USA
Posts: 2,998
Yes, Stewrt is correct hierarchy affects layer behavior, and if you think about it, it makes sense.

Lets start with groups. If I have a group and place it in a layer then turn of the layers visibility everything in the group vanishes. You can also put each individual object in the group in its own layer and as long as the group layer is visible you can turn off the visibility for each objects layer independently. So each object can be in more then one layer and hierarchy affects the layer behavior.

Parenting works the same way, except if you parent object A to object B and you have a layer that only contains object B. Making B not visible will make A not visible even though it seems that it is not explicitly in the same layer with B.

Put more simply if you hide visibility of a parent or a groups layer, you hide visibility of every child of the parent or the group regardless if they were explicitly put in the layer or not.

Try this to see it in your own mind it should help.

1. Create a sphere and put it in layer 1
2. Create a cube and put it in layer 2
3. now group them and place the group node in layer 3

now turn off visibility of layer one or two and the cube or the sphere are no loner visible. So you can control their visibility independently.

now turn layer 1 and 2 visibility on and turn layer 3 visibility off and both cube and sphere are no longer visible. but if you look at the membership in the channel box only the group node is a member.

--------------------------------------------

try the same experiment with parenting...

do steps 1 and 2 above, but now parent cube to sphere.

Now you will have 2 layers one that says membership is the sphere and the other says membership is the cube.

You can toggle the visibility of the cube layer and just the cube is affected. But try to toggle the visibility of the sphere layer and both the sphere and its child, the cube, are affected even though the cube does not show up as a member of the layer in the channel box.


"If I have seen further it is by standing on the shoulders of giants." Sir Isaac Newton, 1675

Last edited by ctbram; 07-03-2012 at 06:33 AM.
# 4 07-03-2012 , 07:46 AM
djwaterman's Avatar
Registered User
Join Date: Nov 2011
Location: Sydney
Posts: 196
Thank you both, I have tried the experiment, and now I am seeing what you say is true. My Lightwave background has me thinking that layers are an actual place that objects are stored in, in Maya they are really just for visibility and rendering sorting. And I have not been keeping a good eye on my outliner and seeing how object group clusters are forming as I model. You have helped me to better understand what is going on.

Here is another question, if I have an object and I select some polygons on it and I want to copy those polygons and paste then into another new layer. what is the best way to go about it? That's the kind of thing I would do a lot of when modelling.

# 5 07-03-2012 , 08:04 AM
ctbram's Avatar
Moderator
Join Date: Jan 2004
Location: Michigan, USA
Posts: 2,998
copying and pasting polygons into layers is a lightwave and modo concept and don't have an analogue in maya.

polygons, edges, and verts are component level and they cannot be saved into layers in maya. Only object level items can be placed into layers.

You can however, make component level selection groups to help you quickly select groups of faces. Look at create>select>quick select set. You can also extract and duplicate faces and then place the resulting objects into layers.

I have done a little bit of work in both max and modo. max and maya are very similar in the way layers work. Modo which from what I can tell was based on lightwave has a very different way of handling object and component level items and a more photoshop like concept for layers which can hold objects and well as component level items.

Having run through a couple tutorials in modo I can say that adjusting to the differences in the layer system can be one of the most challenging things to adjust too. It took me quite a while to wrap my head around modo / lightwave layers coming from maya and max. But once you get a handle on the two systems, learning the modeling tools themselves and the workflows is not that bad.

don't feel to bad, when I was learning the other direction going to modo from maya, the modo layer system nearly made me insane. I would put things into layers and then could not figure out how to get them out or isolate them.


"If I have seen further it is by standing on the shoulders of giants." Sir Isaac Newton, 1675

Last edited by ctbram; 07-03-2012 at 08:12 AM.
# 6 08-03-2012 , 05:02 AM
djwaterman's Avatar
Registered User
Join Date: Nov 2011
Location: Sydney
Posts: 196
Thanks again. Now I really appreciate the out-liner, groups and layers, a fundamental step in the right direction to mastering Maya.

# 7 08-03-2012 , 09:49 AM
djwaterman's Avatar
Registered User
Join Date: Nov 2011
Location: Sydney
Posts: 196
I duplicated and extracted some geometry from an object. I then ungrouped it and unparented it, but the relationship to the origin object remained. I had to actually select it, then cut it, and then paste it, and that seemed to totally separate it from any relationship with the original, it also created an extra layer with a surplus original object, I just deleted that layer. So that's how I finally got it to work for me.

It seems like a lot of steps to copy and cut some polygons from an object, so I'm assuming there is a quicker way.

# 8 08-03-2012 , 11:28 AM
ctbram's Avatar
Moderator
Join Date: Jan 2004
Location: Michigan, USA
Posts: 2,998
You are trying to use a Lightwave workflow in Maya is the problem. I would strongly suggest you find some tutorials and watch them end to end and make note of the Maya work flow. It is seriously different from Lightwave. This whole idea of cutting and pasting polygons into layers just does not exist in Maya.


"If I have seen further it is by standing on the shoulders of giants." Sir Isaac Newton, 1675
# 9 08-03-2012 , 12:06 PM
djwaterman's Avatar
Registered User
Join Date: Nov 2011
Location: Sydney
Posts: 196
I'm sure your right there. All objects really just exist in the same place and it's just the visibility that is turned on and off with layers. But isn't it common in modeling to select parts of some object and copy and paste them, leaving the original intact and just having the copied bits as separate objects? Forget the layers issue, that's really what I have been trying to do.

I just discovered that if you duplicate a group in the outliner, the duplicated group is automatically added to what ever layer is currently selected. That's quite handy, I can create an empty layer and when I duplicate, the new group is automatically in there.

Yes I will try to find a good total workflow tutorial, there's probably some in Simply Maya I should look at.

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off