<div dir="ltr">Hi Sergey,<div><br></div><div>How can I attach an image texture to the object in the xml file? In blender the object needs to be unwrapped but I&#39;m not sure how I can do this in the xml api. It would be very helpful if you could give me some advice. Thank you!</div><div><br></div><div>Best,</div><div>Lin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 16, 2016 at 11:43 PM, Lin M <span dir="ltr">&lt;<a href="mailto:majcjc@gmail.com" target="_blank">majcjc@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Laurent,<div><br></div><div>You mentioned that there are some annoying bugs there, could you described them a little bit so I can try to fix them. Thanks!</div><div><br></div><div>Best,</div><div>Lin</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 16, 2016 at 11:35 PM, Lin M <span dir="ltr">&lt;<a href="mailto:majcjc@gmail.com" target="_blank">majcjc@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div><div style="font-size:12.8px">The rgbcurvesnode is a subnode under the &lt;shader&gt;&lt;/shader&gt; tag and cannot be loaded like the mesh data. It&#39;s not elegant to add a line in the xml_read_scene() specially for rgbcurvesnode. I feel it would be better to change the import code of xml_read_shader(): Check if the name already existed in the state.scene-&gt;shaders. So the nodes in a shader can be imported from different places.</div><span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">For example</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">File 1</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">&lt;cycles&gt;</div><div style="font-size:12.8px">&lt;shader name=&quot;name_1&quot;&gt;</div><div style="font-size:12.8px">  &lt;certain_node /&gt;</div><div style="font-size:12.8px">&lt;/shader&gt;</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">&lt;include src=&quot;//File 2.xml&quot; /&gt;</div><div style="font-size:12.8px">&lt;/cycles&gt;</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">File 2</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">&lt;cycles&gt;</div><div style="font-size:12.8px">&lt;shader name=&quot;name_1&quot;&gt;</div><div style="font-size:12.8px">  &lt;certain_node /&gt;</div><div style="font-size:12.8px">&lt;/shader&gt;</div><div style="font-size:12.8px">&lt;/cycles&gt;</div></span></div><div><br></div><div><br></div><div>I submitted a diff here <a href="https://developer.blender.org/D1857" target="_blank">https://developer.blender.org/D1857</a> </div><div><br></div><div>Not sure if this is the right way to do it, please take a look at it. Thanks!</div><div><br></div><div>Best,</div><div>Lin</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 16, 2016 at 12:59 PM, Sergey Sharybin <span dir="ltr">&lt;<a href="mailto:sergey.vfx@gmail.com" target="_blank">sergey.vfx@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi,</p>
<p dir="ltr">While it&#39;s not ideal (personally I don&#39;t find xml ideal here to begin with, but that&#39;s another story ;) but for the time being think it&#39;s not a bad approach indeed.</p>
<div class="gmail_quote"><div><div>On Mar 16, 2016 07:01, &quot;Lin M&quot; &lt;<a href="mailto:majcjc@gmail.com" target="_blank">majcjc@gmail.com</a>&gt; wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi,<div><br></div><div>I&#39;m adding the RGBCurvesNode to XML API. There are 3 variables needed to be added into the node. The min_x and max_x can be easily set from xml file. I&#39;m thinking about how to load the curves array from xml file. Since the size depends on the depth of image (256 each channel for 8bit image) and quite large, is it OK if I saved it in a separate file like the current way for mesh data?<br></div><div><br></div><div>Best,</div><div>Lin</div></div>
<br></div></div>_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org" target="_blank">Bf-cycles@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
<br></blockquote></div>
<br>_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org" target="_blank">Bf-cycles@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>