Introduction to Maya - Modeling Fundamentals Vol 1
This course will look at the fundamentals of modeling in Maya with an emphasis on creating good topology. We'll look at what makes a good model in Maya and why objects are modeled in the way they are.
# 1 12-09-2012 , 04:43 PM
Darkware's Avatar
Subscriber
Join Date: Oct 2002
Location: USA
Posts: 1,172

Way to instance groups?

I'm making a long tunnel that will have structural supports, wires, and other little odds and ends all the way through it. It will be the same stuff over and over again. Rather than have to do a motion path or to figure out the exact rotation and translates to duplicate each individual object 15 times each to place each one down the tunnel (which is a curved tunnel by the way), it would be easier to simply make an instanced group, duplicate it down the tunnel, then never have to worry about duplicating the objects within repeatedly. I could then create new objects within the group and position them as needed only once and they would automatically be instanced in the instanced groups down the tunnel.

Is this possible?

# 2 12-09-2012 , 05:31 PM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374
As far as I'm aware, no. You see, an instance is basically two transform nodes that share the same shape node. A group node is a transform node. So you can't have two "group" transform node that share child transform nodes... then they would be in the same place. I doubt that makes sense, but essentially instancing only works at the shape node level.

You can probably accomplish the result you want with scripting, but I'm not sure if there's a straightforward approach.

# 3 12-09-2012 , 06:21 PM
daverave's Avatar
The thin red line
Join Date: Aug 2009
Location: England
Posts: 4,472
I have add a group to one off the meshes of a group that I have instanced and this does seam to work not sure why may be of of the tech heads will explain............dave

Attached Thumbnails



Avatar Challenge Winner 2010
# 4 12-09-2012 , 06:25 PM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374
Not sure what you mean by adding a group to a mesh. My brain seems to be a bit fuzzy today. user added image

# 5 12-09-2012 , 06:34 PM
daverave's Avatar
The thin red line
Join Date: Aug 2009
Location: England
Posts: 4,472
If you look at the hypergrath you will see that I dragged and dropped group 6 to one of the meshes in group 1 this then updated groups 2,3,4 and 5 witch are instances........dave




Avatar Challenge Winner 2010
# 6 12-09-2012 , 10:26 PM
Darkware's Avatar
Subscriber
Join Date: Oct 2002
Location: USA
Posts: 1,172
Thanks for the help. I got this to work. It works beautifully.

Attached Thumbnails
# 7 12-09-2012 , 10:27 PM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374
Ah, okay, I'm understanding this differently now.
What happens is the objects are actually sharing shape nodes AND transform nodes. I didn't see how two objects in two DIFFERENT positions (e.g. translate) could have the SAME transform node, and so have all the same translate values. BUT, each value in the transform node is RELATIVE to the parent, so of course if the transform of the group is different, that will influence the children.

So I was wrong Darkware, thanks for enlightening me Dave. What this means is if you change the position of any of the children, each of the instances will also change position because they share the transform node. Neato.

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

Similar Threads