<?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: how to affect xgen expression for a specific index archive? in Maya Forum</title>
    <link>https://forums.autodesk.com/t5/maya-forum/how-to-affect-xgen-expression-for-a-specific-index-archive/m-p/6325974#M64786</link>
    <description>&lt;P&gt;One way to do that is to use Archive Expressions. This allows you to have an expression for each archive in the list that can be passed through to other parameters such as length, width and depth (just for example)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/239430i93423578E613887F/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="ArchiveExpressions.png" title="ArchiveExpressions.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You give the expression a name then hit the + and this will add an expression slot per archive:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/239431i46D97D266FF3A82F/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="ArcExp2.png" title="ArcExp2.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These expressions ae linked to the object index so you can add different values for each. In this instance I made them all sliders by just resetting to slider:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/239433i77D860B483447603/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="resetSlider.png" title="resetSlider.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then you can adjust the min/max values for the sliders in the expression editor by changing the values in red after the #;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/239434iEB5BAFB74FD0CB66/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="minmax.png" title="minmax.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then you have a slider for each object in the list:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/239435iEF0886F680C7D807/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="ArcExp3.png" title="ArcExp3.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To use these expressions you then just add the expression name, in this case ArcLength, to the parameters you want to affect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/239437i11E2D146971F4ACA/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="ArcExp4.png" title="ArcExp4.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then each archive will have the value from their corresponding expression passed through to the parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2016 21:25:10 GMT</pubDate>
    <dc:creator>Michael_Todd</dc:creator>
    <dc:date>2016-05-13T21:25:10Z</dc:date>
    <item>
      <title>how to affect xgen expression for a specific index archive?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-to-affect-xgen-expression-for-a-specific-index-archive/m-p/6318361#M64785</link>
      <description>&lt;P&gt;I've been trying to modify the primite attributes in XGEN for a specific index item but i'm a bit unclear on the SeExpr expression syntax and I haven't been able to find any examples that deal with the $id or the index value from other attributes beside index.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example, I want to change the xgen length attribute for only&amp;nbsp;primities at index[2].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ive dug through the api docs for maya and seexp&amp;nbsp;&lt;A href="http://wdas.github.io/SeExpr/doxygen/userdoc.html" target="_blank"&gt;http://wdas.github.io/SeExpr/doxygen/userdoc.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;sorry for the beginner question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 15:43:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-to-affect-xgen-expression-for-a-specific-index-archive/m-p/6318361#M64785</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-10T15:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to affect xgen expression for a specific index archive?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-to-affect-xgen-expression-for-a-specific-index-archive/m-p/6325974#M64786</link>
      <description>&lt;P&gt;One way to do that is to use Archive Expressions. This allows you to have an expression for each archive in the list that can be passed through to other parameters such as length, width and depth (just for example)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/239430i93423578E613887F/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="ArchiveExpressions.png" title="ArchiveExpressions.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You give the expression a name then hit the + and this will add an expression slot per archive:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/239431i46D97D266FF3A82F/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="ArcExp2.png" title="ArcExp2.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These expressions ae linked to the object index so you can add different values for each. In this instance I made them all sliders by just resetting to slider:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/239433i77D860B483447603/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="resetSlider.png" title="resetSlider.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then you can adjust the min/max values for the sliders in the expression editor by changing the values in red after the #;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/239434iEB5BAFB74FD0CB66/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="minmax.png" title="minmax.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then you have a slider for each object in the list:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/239435iEF0886F680C7D807/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="ArcExp3.png" title="ArcExp3.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To use these expressions you then just add the expression name, in this case ArcLength, to the parameters you want to affect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/239437i11E2D146971F4ACA/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="ArcExp4.png" title="ArcExp4.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then each archive will have the value from their corresponding expression passed through to the parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 21:25:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-to-affect-xgen-expression-for-a-specific-index-archive/m-p/6325974#M64786</guid>
      <dc:creator>Michael_Todd</dc:creator>
      <dc:date>2016-05-13T21:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to affect xgen expression for a specific index archive?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-to-affect-xgen-expression-for-a-specific-index-archive/m-p/6328354#M64787</link>
      <description>&lt;P&gt;ah I never noticed that tab before! Here I was trying to use the global expressions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;works great! thank you!&lt;/P&gt;&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 14:16:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-to-affect-xgen-expression-for-a-specific-index-archive/m-p/6328354#M64787</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-16T14:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to affect xgen expression for a specific index archive?</title>
      <link>https://forums.autodesk.com/t5/maya-forum/how-to-affect-xgen-expression-for-a-specific-index-archive/m-p/8127974#M64788</link>
      <description>Work like a charm</description>
      <pubDate>Fri, 13 Jul 2018 08:04:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-forum/how-to-affect-xgen-expression-for-a-specific-index-archive/m-p/8127974#M64788</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-13T08:04:19Z</dc:date>
    </item>
  </channel>
</rss>

