<?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 do I set the color of the new operator in FlexScript? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-set-the-color-of-the-new-operator-in-flexscript/m-p/13540168#M47147</link>
    <description>&lt;P&gt;Hi Axel,&lt;/P&gt;&lt;P&gt;In the new people type operators you will finde a new node called Operator -&amp;gt; visual / localshapedata. This node contains a table with all the current clothes and options for the task executer. I suggest right clicking on the nameless subnode and chosing "Explore as table" to see the options in a table.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19470-operator1.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1499244i75521B1AE0768D6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="19470-operator1.png" alt="19470-operator1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the table you can see which shapes are currently visible by looking for the zeroes in the hideMesh column. There is also a column named useObjectColor. If set to 1, the mesh will take the color of the overall object color. You can now dictate the color of the clothes for instance by setting the main color of the object, but of course this only allows you to set one color. If you want to programaticllay set the clothing color seperatly you need to go a bit deeper:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19471-operator2.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1499245iAF3FE998E68E0FA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="19471-operator2.png" alt="19471-operator2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Each row node in the table has the simple-data-type and infomation on the clothing or body part. In the nodes there is a 'diffuseColor' tag that defines the color. &lt;/P&gt;&lt;P&gt;If you access the node and use the command: &lt;/P&gt;&lt;PRE&gt;setsdtvalue(sdtNode, "valName", value);&lt;/PRE&gt;&lt;P&gt;You can now set the 'diffuseColor':&lt;/P&gt;&lt;PRE&gt;treenode sdtNode = so; 
Array color = Color.green;
setsdtvalue(sdtNode, "diffuseColor", color);&lt;/PRE&gt;&lt;P&gt;For more info on setsdtvalue, see this: &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/questions/29437/how-to-read-nodes-with-the-datatype-simple.html" target="_blank"&gt;Topic&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2019 08:00:47 GMT</pubDate>
    <dc:creator>MBJEBZSRG</dc:creator>
    <dc:date>2019-05-28T08:00:47Z</dc:date>
    <item>
      <title>How do I set the color of the new operator in FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-set-the-color-of-the-new-operator-in-flexscript/m-p/13540167#M47146</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.1.0 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Previously when I wanted to change the color of the operator I changed the color of the object. With the new FlexSim 2019 Update 1 operator visuals the colors are separate for all the different parts of the clothes. &lt;/P&gt;&lt;P&gt;How can I e.g. set the color of the shirt of the person using FlexScript? &lt;/P&gt;&lt;P&gt;An option for the color of a certain piece of clothing (or many) to use the same color as the object could also be a nice improvement.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Axel&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 05:46:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-set-the-color-of-the-new-operator-in-flexscript/m-p/13540167#M47146</guid>
      <dc:creator>axel_kohonen</dc:creator>
      <dc:date>2019-05-28T05:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the color of the new operator in FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-set-the-color-of-the-new-operator-in-flexscript/m-p/13540168#M47147</link>
      <description>&lt;P&gt;Hi Axel,&lt;/P&gt;&lt;P&gt;In the new people type operators you will finde a new node called Operator -&amp;gt; visual / localshapedata. This node contains a table with all the current clothes and options for the task executer. I suggest right clicking on the nameless subnode and chosing "Explore as table" to see the options in a table.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19470-operator1.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1499244i75521B1AE0768D6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="19470-operator1.png" alt="19470-operator1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the table you can see which shapes are currently visible by looking for the zeroes in the hideMesh column. There is also a column named useObjectColor. If set to 1, the mesh will take the color of the overall object color. You can now dictate the color of the clothes for instance by setting the main color of the object, but of course this only allows you to set one color. If you want to programaticllay set the clothing color seperatly you need to go a bit deeper:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19471-operator2.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1499245iAF3FE998E68E0FA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="19471-operator2.png" alt="19471-operator2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Each row node in the table has the simple-data-type and infomation on the clothing or body part. In the nodes there is a 'diffuseColor' tag that defines the color. &lt;/P&gt;&lt;P&gt;If you access the node and use the command: &lt;/P&gt;&lt;PRE&gt;setsdtvalue(sdtNode, "valName", value);&lt;/PRE&gt;&lt;P&gt;You can now set the 'diffuseColor':&lt;/P&gt;&lt;PRE&gt;treenode sdtNode = so; 
Array color = Color.green;
setsdtvalue(sdtNode, "diffuseColor", color);&lt;/PRE&gt;&lt;P&gt;For more info on setsdtvalue, see this: &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/questions/29437/how-to-read-nodes-with-the-datatype-simple.html" target="_blank"&gt;Topic&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 08:00:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-set-the-color-of-the-new-operator-in-flexscript/m-p/13540168#M47147</guid>
      <dc:creator>MBJEBZSRG</dc:creator>
      <dc:date>2019-05-28T08:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the color of the new operator in FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-set-the-color-of-the-new-operator-in-flexscript/m-p/13540169#M47148</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/298/axel.k.html" nodeid="298"&gt;@Axel Kohonen&lt;/A&gt; &lt;/P&gt;&lt;P&gt;It's the same with the old. If you want to change only the shirt color, use Color.byNumber().&lt;/P&gt;&lt;P&gt;I attach the example model.&lt;/P&gt;&lt;P&gt;&lt;A id="19472" href="https://answers.flexsim.com/storage/temp/19472-operator-shirt-color-change.fsm"&gt;operator-shirt-color-change.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 08:12:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-set-the-color-of-the-new-operator-in-flexscript/m-p/13540169#M47148</guid>
      <dc:creator>SimFlex_support</dc:creator>
      <dc:date>2019-05-28T08:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the color of the new operator in FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-set-the-color-of-the-new-operator-in-flexscript/m-p/13540170#M47149</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/209/david.s.html" nodeid="209"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/209/david.s.html" nodeid="209"&gt;@Seung Yong Seo&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for the answer. You are correct if I have chosen the shape "Male operator" or "Female operator", but if I choose any of the other shapes, then this does not work.&lt;/P&gt;&lt;P&gt;So Martin's answer is better in my opinion as it applies to also the other shapes.&lt;/P&gt;&lt;P&gt;Axel&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 09:16:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-set-the-color-of-the-new-operator-in-flexscript/m-p/13540170#M47149</guid>
      <dc:creator>axel_kohonen</dc:creator>
      <dc:date>2019-05-28T09:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the color of the new operator in FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-set-the-color-of-the-new-operator-in-flexscript/m-p/13540171#M47150</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/246/martin.j.html" nodeid="246"&gt;@martin.jensen&lt;/A&gt; Thank you for the thorough explanation. &lt;/P&gt;&lt;P&gt;Axel&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 09:19:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-set-the-color-of-the-new-operator-in-flexscript/m-p/13540171#M47150</guid>
      <dc:creator>axel_kohonen</dc:creator>
      <dc:date>2019-05-28T09:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the color of the new operator in FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-set-the-color-of-the-new-operator-in-flexscript/m-p/13540172#M47151</link>
      <description>&lt;P&gt;We're working on some improvements for this. For the next 19.1 bug fix the shirts of person flowitems will be set to use object color so that you can easily set their shirt color through code. &lt;/P&gt;&lt;P&gt;For 19.2, the shirts of all the operators will be set to use object color and the Person Visuals panel in Quick Properties will be updated to let you easily toggle the use object color setting.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 17:28:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-set-the-color-of-the-new-operator-in-flexscript/m-p/13540172#M47151</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2019-05-28T17:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the color of the new operator in FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-set-the-color-of-the-new-operator-in-flexscript/m-p/13540173#M47152</link>
      <description>&lt;P&gt;&lt;A href="https://answers.flexsim.com/questions/66928/how-do-i-set-the-color-of-the-new-operator-in-flex.html#"&gt;@Axel Kohonen&lt;/A&gt; &lt;A href="https://answers.flexsim.com/questions/66928/how-do-i-set-the-color-of-the-new-operator-in-flex.html#"&gt;@martin.jensen&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is a GUI to change all these options too.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.flexsim.com/en/19.1/Reference/3DObjects/SharedTabsProperties/General/#customizeshape"&gt;https://docs.flexsim.com/en/19.1/Reference/3DObjects/SharedTabsProperties/General/#customizeshape&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 17:32:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-set-the-color-of-the-new-operator-in-flexscript/m-p/13540173#M47152</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2019-05-28T17:32:24Z</dc:date>
    </item>
  </channel>
</rss>

