<?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: mel command ('rendersequence;') is not working whille trying to open maya from command line in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-command-rendersequence-is-not-working-whille-trying-to-open/m-p/12329982#M808</link>
    <description>&lt;P&gt;Hello &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14453878"&gt;@kartikey_s&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Hope you are doing fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Topic 1&lt;/P&gt;&lt;P&gt;How to launch maya from command line?&lt;/P&gt;&lt;P&gt;to open maya from command line kindly follow the below page, good practice is mentioned in the maya docs&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/MAYAUL/2024/ENU/?guid=GUID-2E5D1D43-DC3D-4CB2-9A35-757598220F22" target="_blank"&gt;https://help.autodesk.com/view/MAYAUL/2024/ENU/?guid=GUID-2E5D1D43-DC3D-4CB2-9A35-757598220F22&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Topic 2&lt;/P&gt;&lt;P&gt;you mentioned the last command is not working,&lt;/P&gt;&lt;P&gt;It works if you mention it in the scene file, but not in the automated way&lt;/P&gt;&lt;P&gt;Sorry but can you mention you automated way? - is it userSetup.py? or scriptJob? or any other technique that you are using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Topic 1 should help you get log while launching maya from command line, kindly give it a try and let us know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Oct 2023 13:20:45 GMT</pubDate>
    <dc:creator>16497643852</dc:creator>
    <dc:date>2023-10-25T13:20:45Z</dc:date>
    <item>
      <title>mel command ('rendersequence;') is not working whille trying to open maya from command line</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-command-rendersequence-is-not-working-whille-trying-to-open/m-p/12233890#M807</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;So basically I am trying to open maya from command line using subprocess in python and executing a python script (.py) file like below:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;command = [
        "C:/Program Files/Autodesk/Maya2020/bin/maya.exe",
        '-command',
        'python("exec('python script path")'
    ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;from my script everything is working fine like maya is opening and as well the file except one command for example:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;mel.eval('renderSequenceOptionsWindow;')
mel.eval('optionMenuGrp -e -v "{}" renderSequenceCameraList;'.format(facial_cam_node))
mel.eval('renderSequenceCurrentCameraChanged();')
mel.eval('renderSequence;')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have these commands first three are working fine except the last one , the issue is I am not getting an error as well, its like Maya is not even considering this command from the script.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; Here &lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;facial_cam_node&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; is the camera I'll be using to render images.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;And the weird part is on the same opened Maya session ( which I opened from command line), when I am running this command back again in script editor then its rendering as well, its just not happening in the automated workflow.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any help would be great thanks&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Sep 2023 07:08:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-command-rendersequence-is-not-working-whille-trying-to-open/m-p/12233890#M807</guid>
      <dc:creator>kartikey_s</dc:creator>
      <dc:date>2023-09-12T07:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: mel command ('rendersequence;') is not working whille trying to open maya from command line</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/mel-command-rendersequence-is-not-working-whille-trying-to-open/m-p/12329982#M808</link>
      <description>&lt;P&gt;Hello &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14453878"&gt;@kartikey_s&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Hope you are doing fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Topic 1&lt;/P&gt;&lt;P&gt;How to launch maya from command line?&lt;/P&gt;&lt;P&gt;to open maya from command line kindly follow the below page, good practice is mentioned in the maya docs&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/MAYAUL/2024/ENU/?guid=GUID-2E5D1D43-DC3D-4CB2-9A35-757598220F22" target="_blank"&gt;https://help.autodesk.com/view/MAYAUL/2024/ENU/?guid=GUID-2E5D1D43-DC3D-4CB2-9A35-757598220F22&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Topic 2&lt;/P&gt;&lt;P&gt;you mentioned the last command is not working,&lt;/P&gt;&lt;P&gt;It works if you mention it in the scene file, but not in the automated way&lt;/P&gt;&lt;P&gt;Sorry but can you mention you automated way? - is it userSetup.py? or scriptJob? or any other technique that you are using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Topic 1 should help you get log while launching maya from command line, kindly give it a try and let us know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 13:20:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/mel-command-rendersequence-is-not-working-whille-trying-to-open/m-p/12329982#M808</guid>
      <dc:creator>16497643852</dc:creator>
      <dc:date>2023-10-25T13:20:45Z</dc:date>
    </item>
  </channel>
</rss>

