<?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 Get selected layers in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/get-selected-layers/m-p/8680796#M8074</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I get the layers that are currently selected in the Render Setup windows ( Windows &amp;gt; Rendering Editor &amp;gt; Render Setup ) with Python ? Is it possible ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks by advance&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2019 09:41:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-25T09:41:13Z</dc:date>
    <item>
      <title>Get selected layers</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/get-selected-layers/m-p/8680796#M8074</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I get the layers that are currently selected in the Render Setup windows ( Windows &amp;gt; Rendering Editor &amp;gt; Render Setup ) with Python ? Is it possible ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks by advance&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 09:41:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/get-selected-layers/m-p/8680796#M8074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-25T09:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get selected layers</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/get-selected-layers/m-p/8688807#M8075</link>
      <description>&lt;P&gt;Hi&amp;nbsp;pierre_lanneau,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;Yes, it is possible. Maya provides Render Setup Python API and commands that you can use to get current selection in the Render Setup window. You can do this:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;import maya.app.renderSetup.views.viewCmds as viewCmds
viewCmds.getSelection()&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Check out this page for more information about the Render Setup Python API and commands:&amp;nbsp;&lt;A href="http://help.autodesk.com/view/MAYAUL/2018/ENU//?guid=GUID-FFC3298A-9803-4EAF-B472-D13247319EB0" target="_blank" rel="noopener"&gt;http://help.autodesk.com/view/MAYAUL/2018/ENU//?guid=GUID-FFC3298A-9803-4EAF-B472-D13247319EB0&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;To get more info about the &lt;STRONG&gt;viewCmds.getSelection() &lt;/STRONG&gt;method, check out the &lt;STRONG&gt;viewCmds.py&amp;nbsp;&lt;/STRONG&gt;file.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;On Mac OS, you can find the viewCmds.py file here:&amp;nbsp;&lt;EM&gt;$MAYA_LOCATION/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/maya/app/renderSetup/views/viewCmds.py&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;On Windows, it should be similar to this:&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;..\Python\Lib\site-packages\maya\app\renderSetup\views\viewCmds.py&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Lanh&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Mar 2019 23:41:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/get-selected-layers/m-p/8688807#M8075</guid>
      <dc:creator>lanh.hong</dc:creator>
      <dc:date>2019-03-27T23:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get selected layers</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/get-selected-layers/m-p/8690470#M8076</link>
      <description>&lt;P&gt;Hi !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot, that's exactly what I was searching for !&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 13:01:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/get-selected-layers/m-p/8690470#M8076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-28T13:01:21Z</dc:date>
    </item>
  </channel>
</rss>

