<?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 MASH distribute: link to Selection Set  via python? in Maya Dynamics Forum</title>
    <link>https://forums.autodesk.com/t5/maya-dynamics-forum/mash-distribute-link-to-selection-set-via-python/m-p/8356748#M2798</link>
    <description>&lt;P&gt;I can link the MASH distribute node to a selection set in the UI.&amp;nbsp; But I am not able to properly do it in code.&amp;nbsp; Is there a python call to create the link?&amp;nbsp; I tried simply connecting the attributes like this:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmds.connectAttr(vertSet+".message", mashNetwork.distribute+".selectionSetMessage")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Which appears to work (the UI thinks it's connected), but the network doesn't function properly.&amp;nbsp; Is there a special call to do this, or just some maya connections I can set up so scripting it works identically to doing it manually in the UI?&lt;/P&gt;</description>
    <pubDate>Wed, 24 Oct 2018 17:20:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-24T17:20:06Z</dc:date>
    <item>
      <title>MASH distribute: link to Selection Set  via python?</title>
      <link>https://forums.autodesk.com/t5/maya-dynamics-forum/mash-distribute-link-to-selection-set-via-python/m-p/8356748#M2798</link>
      <description>&lt;P&gt;I can link the MASH distribute node to a selection set in the UI.&amp;nbsp; But I am not able to properly do it in code.&amp;nbsp; Is there a python call to create the link?&amp;nbsp; I tried simply connecting the attributes like this:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmds.connectAttr(vertSet+".message", mashNetwork.distribute+".selectionSetMessage")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Which appears to work (the UI thinks it's connected), but the network doesn't function properly.&amp;nbsp; Is there a special call to do this, or just some maya connections I can set up so scripting it works identically to doing it manually in the UI?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 17:20:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-dynamics-forum/mash-distribute-link-to-selection-set-via-python/m-p/8356748#M2798</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-24T17:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: MASH distribute: link to Selection Set  via python?</title>
      <link>https://forums.autodesk.com/t5/maya-dynamics-forum/mash-distribute-link-to-selection-set-via-python/m-p/8360805#M2799</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should be connectNode function of MASH_QLineEditExtend in Maya\plug-ins\MASH\scripts\MASHsingleInputQtWidget.py.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could write own script base on it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW: For selectionSetMessage, post command should be 'SwitchToVtxSetMode'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yours,&lt;/P&gt;
&lt;P&gt;Li&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 03:07:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-dynamics-forum/mash-distribute-link-to-selection-set-via-python/m-p/8360805#M2799</guid>
      <dc:creator>cheng_xi_li</dc:creator>
      <dc:date>2018-10-26T03:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: MASH distribute: link to Selection Set  via python?</title>
      <link>https://forums.autodesk.com/t5/maya-dynamics-forum/mash-distribute-link-to-selection-set-via-python/m-p/11749401#M2800</link>
      <description>&lt;P&gt;Im not a python expert can someone share the code for it to work?&lt;BR /&gt;as above I get the same issue where its connected but doesn't work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Looked in the MAsh api&lt;/P&gt;&lt;LI-CODE lang="general"&gt;meshDistribute(mesh, mode=1)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;tried:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;mashNetwork.meshDistribute("sel_set", 7)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;but that doesnt work either&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2023 21:41:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-dynamics-forum/mash-distribute-link-to-selection-set-via-python/m-p/11749401#M2800</guid>
      <dc:creator>Mike_Isaakidis</dc:creator>
      <dc:date>2023-02-12T21:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: MASH distribute: link to Selection Set  via python?</title>
      <link>https://forums.autodesk.com/t5/maya-dynamics-forum/mash-distribute-link-to-selection-set-via-python/m-p/11752168#M2801</link>
      <description>&lt;P&gt;Ah managed to solve it, went exactly where you mentioned and was an easy fix after that.&lt;BR /&gt;Thanks&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2777035" target="_self"&gt;&lt;SPAN class=""&gt;Cheng&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 22:58:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-dynamics-forum/mash-distribute-link-to-selection-set-via-python/m-p/11752168#M2801</guid>
      <dc:creator>Mike_Isaakidis</dc:creator>
      <dc:date>2023-02-13T22:58:04Z</dc:date>
    </item>
  </channel>
</rss>

