<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Combine multiple curves into a single object in Maya Modeling Forum</title>
    <link>https://forums.autodesk.com/t5/maya-modeling-forum/combine-multiple-curves-into-a-single-object/m-p/11732011#M2219</link>
    <description>&lt;P&gt;Thanks, I will try your script.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;From your description it does what it shown in the video I posted link to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Btw, you can do sweep mesh for multiple curves attached to a single transform.&lt;/P&gt;&lt;P&gt;You just need to show shapes in outliner and select individual shapes!&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 04:44:44 GMT</pubDate>
    <dc:creator>The-Digital-Shaman</dc:creator>
    <dc:date>2023-02-06T04:44:44Z</dc:date>
    <item>
      <title>Combine multiple curves into a single object</title>
      <link>https://forums.autodesk.com/t5/maya-modeling-forum/combine-multiple-curves-into-a-single-object/m-p/11723833#M2216</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do you go about combining multiple curves into a single object?&lt;/P&gt;&lt;P&gt;Maya's attach command unnecessarily tries to blend connect the curves I have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to prevent this to happen?&lt;/P&gt;&lt;P&gt;I've tried all the options in the Options window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;DS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 10:36:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-modeling-forum/combine-multiple-curves-into-a-single-object/m-p/11723833#M2216</guid>
      <dc:creator>The-Digital-Shaman</dc:creator>
      <dc:date>2023-02-02T10:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Combine multiple curves into a single object</title>
      <link>https://forums.autodesk.com/t5/maya-modeling-forum/combine-multiple-curves-into-a-single-object/m-p/11724208#M2217</link>
      <description>&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=JcVd5dtD35A" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=JcVd5dtD35A&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This guy's workaround is brilliant!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although doesn't really combine multiple curves into a single object.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just soft of groups them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when using sweep mesh, we still end up with multiple objects. Uh&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 13:52:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-modeling-forum/combine-multiple-curves-into-a-single-object/m-p/11724208#M2217</guid>
      <dc:creator>The-Digital-Shaman</dc:creator>
      <dc:date>2023-02-02T13:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Combine multiple curves into a single object</title>
      <link>https://forums.autodesk.com/t5/maya-modeling-forum/combine-multiple-curves-into-a-single-object/m-p/11724410#M2218</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah sadly there isn't really a way to combine curve shapes without maya trying to interpolate the end of one curve to being attached to the start of another, thats just how curves are calculated in maya.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What you can do, is parent multiple shapes to one transform. Thats something that you do rather often when rigging. So I wrote a script for that:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import maya.cmds as mc

def groupShapesUnderLast():
    """
    Groups shapes of all nurbscurves in selected Hierarchies under the last selected transform
    """
    
    sl = mc.ls(sl=True)
    
    
    par = sl.pop(-1)
    parPiv = mc.xform(par, q= True, ws= True, piv= True)
    
    curvesList = []
    pivList = []
    
    for s in sl:
        piv = mc.xform(s,q= True, ws= True, piv= True)
        pivList.append(piv)
        mc.xform(s, piv= (parPiv[0],parPiv[1],parPiv[2]), ws= True)
        cList = mc.listRelatives(s, c= True, ad =  True, type = "nurbsCurve")
        if cList != None:
            curvesList= curvesList + cList
    
    mc.parent(*curvesList, par, s= True)
    
    dList= []
    
    for i in range(0,len(sl)):
        mc.xform(sl[i], piv= (pivList[i][0],pivList[i][1],pivList[i][2]), ws= True)
        decend = mc.listRelatives(sl[i], ad= True)
        if decend == None:
            dList.append(sl[i])
        else:
            check= 0
            for d in decend:
                if mc.objectType(d) != "transform":
                    check= 1
            if check == 0:
                dList.append(sl[i])
                
    mc.delete(dList)

groupShapesUnderLast()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But that still leaves you with multiple shapes so sweepmesh wont work. But as far as I know, there are Bifrost and MASH solutions generate a single mesh from multiple curves.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 14:29:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-modeling-forum/combine-multiple-curves-into-a-single-object/m-p/11724410#M2218</guid>
      <dc:creator>Kahylan</dc:creator>
      <dc:date>2023-02-02T14:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Combine multiple curves into a single object</title>
      <link>https://forums.autodesk.com/t5/maya-modeling-forum/combine-multiple-curves-into-a-single-object/m-p/11732011#M2219</link>
      <description>&lt;P&gt;Thanks, I will try your script.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;From your description it does what it shown in the video I posted link to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Btw, you can do sweep mesh for multiple curves attached to a single transform.&lt;/P&gt;&lt;P&gt;You just need to show shapes in outliner and select individual shapes!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 04:44:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-modeling-forum/combine-multiple-curves-into-a-single-object/m-p/11732011#M2219</guid>
      <dc:creator>The-Digital-Shaman</dc:creator>
      <dc:date>2023-02-06T04:44:44Z</dc:date>
    </item>
  </channel>
</rss>

