We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

“.getObjectByName” JS Vs “get mesh from object” Puzzle

Home Forums General Questions “.getObjectByName” JS Vs “get mesh from object” Puzzle

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #78080
    jasonod888
    Customer

    Hi,

    I’m appending a scene and trying to get the name of the object appended.
    I noticed when i use “.getObjectByName” JS it returns a value with a suffix “name.001_0”.
    But when i use the get mesh from object puzzle or even the get Picked Object puzzle, it returns “name”.

    The puzzles that recognize an object donot recognise the name returned by JS.
    Is there a way i can get the Name that is understood by Puzzles ?

    Thank You

    #78091
    kdv
    Participant

    getObjectByName() will never return a name. it will return an object (a dictionary) or nothing (undefined).

    getObjectByName().name will return an object’s name.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.