<?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: cmds vs OpenMaya API – Real Performance Gains or Just Myth? in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/cmds-vs-openmaya-api-real-performance-gains-or-just-myth/m-p/14123143#M18188</link>
    <description>&lt;P&gt;Deep dag traversal and atomic control over Maya is where OpenMaya excels&lt;BR /&gt;&lt;BR /&gt;Just getting the code to work is where the Python Lib is preferable&lt;BR /&gt;&lt;BR /&gt;There are also numerous things you simply can't do with maya.cmds - making custom viewports, making your own deformeres etc&lt;/P&gt;</description>
    <pubDate>Sat, 09 May 2026 11:30:38 GMT</pubDate>
    <dc:creator>forrest.brent</dc:creator>
    <dc:date>2026-05-09T11:30:38Z</dc:date>
    <item>
      <title>cmds vs OpenMaya API – Real Performance Gains or Just Myth?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/cmds-vs-openmaya-api-real-performance-gains-or-just-myth/m-p/13991590#M18127</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;Maya Version:&lt;BR /&gt;- Maya 2022 / 2024&lt;BR /&gt;- Python 3&lt;/P&gt;&lt;P&gt;Context:&lt;BR /&gt;I’m working on production-style tools that process large numbers of nodes&lt;BR /&gt;(geometry queries, attribute reads/writes, and DAG traversal). These tools&lt;BR /&gt;are executed frequently, sometimes via UI callbacks.&lt;/P&gt;&lt;P&gt;Common advice suggests replacing maya.cmds with OpenMaya for performance,&lt;BR /&gt;but in real-world tools the results don’t always seem consistent.&lt;/P&gt;&lt;P&gt;What I’m Trying to Understand:&lt;BR /&gt;- When OpenMaya actually provides measurable performance benefits&lt;BR /&gt;- When maya.cmds is “good enough” and easier to maintain&lt;BR /&gt;- How much overhead comes from Python vs Maya’s internal execution&lt;/P&gt;&lt;P&gt;Observations:&lt;BR /&gt;- Some OpenMaya loops are faster, but setup and data conversion add overhead&lt;BR /&gt;- In mixed pipelines, the gains sometimes feel marginal&lt;BR /&gt;- UI-driven tools often hide the actual performance difference&lt;/P&gt;&lt;P&gt;What I’ve Tried:&lt;BR /&gt;- Profiling cmds-based implementations vs OpenMaya equivalents&lt;BR /&gt;- Using MFn* classes for direct node access&lt;BR /&gt;- Reducing string-based lookups and repeated cmds calls&lt;/P&gt;&lt;P&gt;Questions:&lt;BR /&gt;1. In which scenarios does OpenMaya truly outperform cmds in production?&lt;BR /&gt;2. Are there internal costs (wrapping, data conversion) that reduce gains?&lt;BR /&gt;3. What patterns do experienced TDs follow when deciding between the two?&lt;/P&gt;&lt;P&gt;Looking for real production experience and not just theoretical guidance.&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 21:23:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/cmds-vs-openmaya-api-real-performance-gains-or-just-myth/m-p/13991590#M18127</guid>
      <dc:creator>animatewithabhay</dc:creator>
      <dc:date>2026-01-26T21:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: cmds vs OpenMaya API – Real Performance Gains or Just Myth?</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/cmds-vs-openmaya-api-real-performance-gains-or-just-myth/m-p/14123143#M18188</link>
      <description>&lt;P&gt;Deep dag traversal and atomic control over Maya is where OpenMaya excels&lt;BR /&gt;&lt;BR /&gt;Just getting the code to work is where the Python Lib is preferable&lt;BR /&gt;&lt;BR /&gt;There are also numerous things you simply can't do with maya.cmds - making custom viewports, making your own deformeres etc&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2026 11:30:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/cmds-vs-openmaya-api-real-performance-gains-or-just-myth/m-p/14123143#M18188</guid>
      <dc:creator>forrest.brent</dc:creator>
      <dc:date>2026-05-09T11:30:38Z</dc:date>
    </item>
  </channel>
</rss>

