<?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 customize the meshes in the selected 3D shape with FlexScript? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592489#M88051</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 Yes, but I don't know why I have to recolor it because the colors from the original object are not the same as the ones in FlexSim. FlexSim transforms the colors to more darkness colors, that's why I have to use the option I asked.
&lt;/DIV&gt;</description>
    <pubDate>Tue, 27 Jun 2023 13:43:13 GMT</pubDate>
    <dc:creator>jouky_d</dc:creator>
    <dc:date>2023-06-27T13:43:13Z</dc:date>
    <item>
      <title>How to customize the meshes in the selected 3D shape with FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592485#M88047</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello everyone,&lt;/P&gt;
 &lt;P&gt;I want to change by code the color of Mesh of a Shape. Normally I go to More Visuals (of the Object) and then I press the button of Customize the meshes in the selected 3D shape. After that I select a Mesh and I check Override to change the Diffuse Color. Is there a way to change the color of the mesh I want (from the object) in FlexScript?&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1687855609002.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1517880i3B7FA563BF23B507/image-size/large?v=v2&amp;amp;px=999" role="button" title="1687855609002.png" alt="1687855609002.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Jun 2023 08:48:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592485#M88047</guid>
      <dc:creator>jouky_d</dc:creator>
      <dc:date>2023-06-27T08:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the meshes in the selected 3D shape with FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592486#M88048</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Any information that is unique to an object should be located in its attribute tree. If you compare a default object to one that had these values changed, you will find that making changes in the menu from your screenshot adds the following node structure to the &lt;EM&gt;visuals&lt;/EM&gt; attribute subnode.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1687864870019.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1517872i49676FFEB69D318E/image-size/large?v=v2&amp;amp;px=999" role="button" title="1687864870019.png" alt="1687864870019.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you copy these nodes to a different object, it will use the same settings (remember to adjust the value of the &lt;EM&gt;shapedata&lt;/EM&gt; node to point to the correct subnode).&lt;/P&gt;&lt;P&gt;And with the knowledge of where the information is stored, you can change it in code.&lt;/P&gt;&lt;PRE&gt;// Change the diffuse color&lt;BR /&gt;setsdtvalue(Model.find("BasicFR1&amp;gt;visual/localshapedata/1/block"), "diffuseColor", [0.6, 0.2, 0.8, 1]);&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Jun 2023 11:23:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592486#M88048</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-06-27T11:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the meshes in the selected 3D shape with FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592487#M88049</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;SPAN id="isPasted" style="color: rgb(51, 51, 51); font-family: "&gt;The localshapedata subnode only appears after I activate it manually the Customize Mesh. Is there a way to activate it with Flexscript and not using manual clicks?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN id="isPasted"&gt;And is there a way to mantain the same object color as the imported object? Why do we have to change the colors again?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Jun 2023 12:32:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592487#M88049</guid>
      <dc:creator>jouky_d</dc:creator>
      <dc:date>2023-06-27T12:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the meshes in the selected 3D shape with FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592488#M88050</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;I don't know if there is a way to generate the simple data type node with the necessary values in FlexScript. As a workaround you could just keep an object with these nodes in the model so you can copy them to other objects.&lt;P&gt;I don't understand you second question. Any imported 3d shape should have its default coloring unless you change it. (Wasn't this your original question?)&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Jun 2023 12:52:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592488#M88050</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-06-27T12:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the meshes in the selected 3D shape with FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592489#M88051</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Yes, but I don't know why I have to recolor it because the colors from the original object are not the same as the ones in FlexSim. FlexSim transforms the colors to more darkness colors, that's why I have to use the option I asked.
&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Jun 2023 13:43:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592489#M88051</guid>
      <dc:creator>jouky_d</dc:creator>
      <dc:date>2023-06-27T13:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the meshes in the selected 3D shape with FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592490#M88052</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;The way colors and textures of imported shapes work depends on the file type. I'm also not an expert on this topic. I believe the default diffuse color FlexSim uses is a light grey, which darkens any color of imported objects. Changing it to white should result in the original color.&lt;P&gt;The lighting in the model can also make a difference.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Jun 2023 13:56:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592490#M88052</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-06-27T13:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the meshes in the selected 3D shape with FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592491#M88053</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thank you Felix! Do you know how to change the default diffuse color FlexSim to white?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Jun 2023 15:18:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592491#M88053</guid>
      <dc:creator>jouky_d</dc:creator>
      <dc:date>2023-06-27T15:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the meshes in the selected 3D shape with FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592492#M88054</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hello &lt;A rel="user" href="https://answers.flexsim.com/users/19823/joukyd.html" nodeid="19823"&gt;@Jouky D&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You could try a few things to change the lighting in FlexSim.&lt;/P&gt;&lt;P&gt;You can customize or turn off shadows in your &lt;A href="https://docs.flexsim.com/en/23.1/Reference/GeneralModelSettings/GlobalPreferences/GlobalPreferences.html#graphics"&gt;global preferences&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Image.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1520140iDD08FE12791E7FDE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image.png" alt="Image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can add model &lt;A href="https://docs.flexsim.com/en/23.0/Reference/Tools/Lights/Lights.html#app"&gt;lighting&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Image.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1520141i509E34F8BCAE360B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image.png" alt="Image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can edit the view's &lt;A href="https://docs.flexsim.com/en/23.1/Reference/GeneralModelSettings/ViewSettings/ViewSettings.html#light"&gt;light sources&lt;/A&gt; (store them in the model Views section)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1688047145365.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1517878i707951DB8FA51958/image-size/large?v=v2&amp;amp;px=999" role="button" title="1688047145365.png" alt="1688047145365.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Jun 2023 14:03:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592492#M88054</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2023-06-29T14:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the meshes in the selected 3D shape with FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592493#M88055</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you 
 &lt;A rel="user" href="https://answers.flexsim.com/users/24344/jeanettef.html" nodeid="24344"&gt;@Jeanette F&lt;/A&gt; , but the first thing, only changes the shadows ON or OFF, it doesn't change type of light (green to White as 
 &lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt; said before. 
&lt;/DIV&gt;</description>
      <pubDate>Fri, 30 Jun 2023 09:19:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592493#M88055</guid>
      <dc:creator>jouky_d</dc:creator>
      <dc:date>2023-06-30T09:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the meshes in the selected 3D shape with FlexScript?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592494#M88056</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;A rel="user" href="https://answers.flexsim.com/users/19823/joukyd.html" nodeid="19823"&gt;@Jouky D&lt;/A&gt; what about the other suggestions?
&lt;/DIV&gt;</description>
      <pubDate>Fri, 30 Jun 2023 13:58:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-customize-the-meshes-in-the-selected-3d-shape-with/m-p/13592494#M88056</guid>
      <dc:creator>julie_weller</dc:creator>
      <dc:date>2023-06-30T13:58:55Z</dc:date>
    </item>
  </channel>
</rss>

