Thank you, Martin
This looks very cool.  I will check it out.  I ended up using the script Matt 
sent but this looks very useful too.

I really appreciate you sending it.

From: softimage-boun...@listproc.autodesk.com 
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Martin Yara
Sent: Tuesday, February 10, 2015 3:26 AM
To: softimage@listproc.autodesk.com
Subject: Re: merge parent and children through scripting?

It isn't a short script so I won't be able to write everything again for you. I 
would do it using an addon I wrote, so If you download and install my addon, 
you can use the code below:

addon:
http://skymill.co.jp/tools/Softimage/mCombine/mCombine.xsiaddon

video to see what it does:
http://vimeo.com/78735229


Then select the parents objects and run this script:

// Jscript

// Specify the Merge Tolerance Value
var mergevalue = 0.00001
//-----------------------------------------

var sel = getvalue("selectionlist")
for ( var i=0; i < sel.Count; i++ ) {
            var obj = sel(i)
            var oChildren = obj.FindChildren2("","polymsh")
            var aChildren =[]
            for ( var j=0; j < oChildren.Count ; j++ ) {
                        aChildren.push(oChildren(j))
            }
            var children = obj.FindChildren("","polymsh")
            mCombine( aChildren+","+obj, mergevalue, 1, 1, 0, 0 )
}


Martin


On Tue, Feb 10, 2015 at 10:35 AM, Jeff McFall 
<jeff.mcf...@sas.com<mailto:jeff.mcf...@sas.com>> wrote:
I have a large set of extruded poly objects which have their detached caps as 
children.
I need to merge these caps into the parent geometry.  There are several hundred 
of these and manually doing each is pretty daunting.  This is beyond my 
scripting abilities.

Anyone have any suggestions or know of a script they could point me to as 
reference to get started?


Many thanks
Jeff





Reply via email to