<div dir="auto"><div style="border-color:rgb(255,255,255)" dir="auto">Errata: I meant """"set a name for object (which is exported FROM Blender)"""</div><div style="border-color:rgb(255,255,255)" dir="auto"><br></div><div style="border-color:rgb(255,255,255)" dir="auto">in last message.</div><div style="border-color:rgb(255,255,255)" dir="auto"><br></div><div style="border-color:rgb(255,255,255)" dir="auto">Michalis</div></div><div dir="auto"><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">W dniu śr., 6.04.2022 o 01:50 Michalis Kamburelis <<a href="mailto:michalis.kambi@gmail.com">michalis.kambi@gmail.com</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">CGE/view3dscene sets the glTF transform node names like 'Node0',<br>
'Node1' etc. for this reason.<br>
<br>
Unless the node has some explicit name, then we happily use it. Making<br>
sure it is unique -- adding suffixes like _2, _3 to make it unique.<br>
<br>
That is why you saw "Avocado" and "Avocado_2" node names in "Using<br>
IMPORT / EXPORT to selectively include parts of glTF file in X3D, and<br>
multiply them as much as necessary" thread example :)<br>
<br>
This way everything can be referenced (whether it has a name or not in<br>
glTF), but also we use descriptive names if available. When they are<br>
available, using the names is better IMHO -- as the order of nodes in<br>
glTF is not directly controlled by a 3D artist that exports to glTF<br>
from Blender/3dsMax etc. And various edits, adding and removing 3D<br>
stuff, will shift the indexes of exported glTF nodes. So, for someone<br>
using Blender/3dsMax etc., it's more reliable to set a name for object<br>
(which is exported to Blender) and then using this name to load the<br>
appropriate thing from glTF.<br>
<br>
Regards,<br>
Michalis<br>
<br>
<br>
śr., 6 kwi 2022 o 01:26 GPU Group <<a href="mailto:gpugroup@gmail.com" target="_blank">gpugroup@gmail.com</a>> napisał(a):<br>
><br>
> Thanks for pointing that out Leonard. How about something like url='library.gltf#Node:0' , or .Node[0] ?<br>
><br>
> On Tue, Apr 5, 2022 at 4:48 PM Leonard Daly <<a href="mailto:Leonard.Daly@realism.com" target="_blank">Leonard.Daly@realism.com</a>> wrote:<br>
>><br>
>> I have seen many recent discussions on this list refer to something like 'model.glTF#name'. In usual HTTP referencing the '#name' is a search string that refers to a unique ID in the HTML.<br>
>><br>
>> If the intent is to use the same concept for accessing internal glTF data, it is (very) important to note that the name is not required and it need not be unique. The best references are the indices that are used to refer to various nodes, buffers, etc. I do not know, nor am I suggesting how to refer to indices.<br>
>><br>
>> --<br>
>> Leonard Daly<br>
>> 3D Systems & Cloud Consultant<br>
>> LA ACM SIGGRAPH Past Chair<br>
>> President, Daly Realism - Creating the Future<br>
>> _______________________________________________<br>
>> x3d-public mailing list<br>
>> <a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
>> <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
><br>
> _______________________________________________<br>
> x3d-public mailing list<br>
> <a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
> <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
</blockquote></div></div></div>