Jump to content

how to check the tags of an object ?


AllForum
 Share

Recommended Posts

Hello,

 

I would like to be able to iterate on the tags. My javascript is too bad to know if it is possible.
As tags are a string in a babylon file I tried a toString()... To parse the string after... But it does not work...

If the solution is plug&play then I am interested in.
If not then don't waste time : it is not important.

Thanks.

Link to comment
Share on other sites

I know this page ; I am using tags.

 

I think that what I want to do is not a "normal" use of tags : I would like to pick a mesh and hide all objects with the same tag t as the picked mesh.

That is why I would like to parse the tags (ie loop on the list of tags) of the picked mesh to extract one tag t if it exists and then use t in a classical way.

 

NB : It is to see what user data can do. It is for a test ; tags seems not the good way to do that.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...