<?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: Xgen: Guides to Curves with Python in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/xgen-guides-to-curves-with-python/m-p/11069112#M4407</link>
    <description>&lt;P&gt;This worked perfectly! Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2022 18:41:10 GMT</pubDate>
    <dc:creator>joshua_e_mock</dc:creator>
    <dc:date>2022-03-29T18:41:10Z</dc:date>
    <item>
      <title>Xgen: Guides to Curves with Python</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/xgen-guides-to-curves-with-python/m-p/10232808#M4404</link>
      <description>&lt;P&gt;Hello there!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know of a way to convert all the guide curves from a spline based description into Maya curves using script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to use the following code to do it,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pm.mel.xgmGuidesToCurvesToolCreate()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it only works when user toggles on the "Guides to Curves" in the utility tab. Otherwise it gave me an error saying:&lt;BR /&gt;&lt;BR /&gt;// Error: file: C:/Program Files/Autodesk/Maya2018/plug-ins/xgen/scripts/xgmGuidesToCurvesTool.mel line 72: Object 'xgmGuidesToCurvesToolGuideStat' not found. //&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone can help me out that would be great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 23:31:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/xgen-guides-to-curves-with-python/m-p/10232808#M4404</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-12T23:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Xgen: Guides to Curves with Python</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/xgen-guides-to-curves-with-python/m-p/11028711#M4405</link>
      <description>&lt;P&gt;I'm curious if you ever found a solution to this problem. I'm having the same issue.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 13:34:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/xgen-guides-to-curves-with-python/m-p/11028711#M4405</guid>
      <dc:creator>joshua_e_mock</dc:creator>
      <dc:date>2022-03-25T13:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Xgen: Guides to Curves with Python</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/xgen-guides-to-curves-with-python/m-p/11068933#M4406</link>
      <description>&lt;P&gt;import maya.cmds as cmds&lt;BR /&gt;import xgenm as xg&lt;BR /&gt;import xgenm.xgGlobal as xgg&lt;/P&gt;&lt;P&gt;if xgg.Maya:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;palettes = xg.palettes()&lt;BR /&gt;for palette in palettes:&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;descriptions = xg.descriptions(palette)&lt;BR /&gt;for description in descriptions:&lt;BR /&gt;print " Description:" + description&lt;BR /&gt;guidesName = xg.descriptionGuides(description)&lt;BR /&gt;print guidesName&lt;BR /&gt;cmds.select(guidesName, r = True)&lt;BR /&gt;mel.eval('xgmCreateCurvesFromGuidesOption(0, 0, "%s")' % (description+"_Curves"))&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 17:30:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/xgen-guides-to-curves-with-python/m-p/11068933#M4406</guid>
      <dc:creator>sujantuladhar1</dc:creator>
      <dc:date>2022-03-29T17:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Xgen: Guides to Curves with Python</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/xgen-guides-to-curves-with-python/m-p/11069112#M4407</link>
      <description>&lt;P&gt;This worked perfectly! Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 18:41:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/xgen-guides-to-curves-with-python/m-p/11069112#M4407</guid>
      <dc:creator>joshua_e_mock</dc:creator>
      <dc:date>2022-03-29T18:41:10Z</dc:date>
    </item>
  </channel>
</rss>

