duplicate question

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  11 November 2012
duplicate question

Is there a way to duplicate just the geometry of an object? For example, here is the hierarchy of an object I wish to duplicate, but I don't want the parentConstraint to get duplicted with it. I just want the transform and the shape node.


Is there a direct way to duplicate pSphere along with pSphereShape without manually deleting whatever other children are contained inside the transform? I just want the raw mesh to be duplicated.
  11 November 2012
From what I can tell: no.

There is a way to duplicate just the top-level DAG node without any of its children, including the shape node. This, unfortunately, leaves you with an empty transform.

Via scripting you could determine the transform node and its (child) shapenodes and duplicate those individually, then reconnect them.
  11 November 2012
I went back over this and tried to script it myself.

As suspected, there really is no way to utilze the duplicate command on any transform node to create a non-instanced duplicate of it that has a unique duplicated shapenode and no instanced inputconnections.

However, it turns out that if you duplicate a shapeNode instead of a transform node, you get exactly what you want: a new transform and a new shapenode.
It's then a matter of simply deleting everything but the transform node from the resulting list of duplicated nodes:

$tNode = `ls -sl -as`;
$s = size($tNode);
if($s == 0) {
    print "Nothing selected";
else if ($s > 1) {
    print "Too many nodes selected";
else {
    $transform = $tNode[0];
    $shapes = `ls -dag -type "shape" $transform`;
    $dNodes = `duplicate -rc $shapes`;
    for($i = 1; $i < size($dNodes); $i++) {
        delete $dNodes[$i];

I haven't been able to test this on a transform that has more than 1 shapeNodes connected to it, so I have no idea what exactly happens in that situation
  11 November 2012
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 07:29 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.