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.

Group of Objects Selector — Apply to only 1 object in group

Home Forums Puzzles Group of Objects Selector — Apply to only 1 object in group

  • This topic has 7 replies, 3 voices, and was last updated 1 year ago by kdv.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #68919
    ma77hew
    Participant

    I have a group of objects. I want all of them to have a feature on hover (enable outline). How do I enable outline on hover for each individual object in the group? Instead of adding this feature one by one?

    However, this highlights every object in the group, rather than just the one that is hovered over.
    How do I specify to target only the 1 object?

    #68920
    kdv
    Participant

    https://www.soft8soft.com/docs/manual/en/puzzles/Events.html#hovered_object

    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.

    #68923
    bigmike814
    Customer

    You need to run it in a loop so they can be looked at individually.

    See the attached example.

    Attachments:
    You must be logged in to view attached files.
    #68926
    kdv
    Participant

    This method with a loop is really good to register dragging for several objects at once but is next to senseless with hovering and clicking. It will work but there is an easier way…

    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.

    #68927
    ma77hew
    Participant

    @kdv I tried using the “hovered object” in place of “Artwork” for inside the “on over do: / out do:” section of the puzzle but that did not work. I tried to work with the list idea at first but was not very clear to me how to use it properly. I will give mike’s suggestion a try.

    #68928
    kdv
    Participant

    I tried using the “hovered object” in place of “Artwork” for inside the “on over do: / out do:” section of the puzzle but that did not work

    Looks like you did something really wrong if that simple set of puzzles from the official manual doesn’t work for you :scratch:

    https://v3d.net/qmv

    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.

    #68939
    ma77hew
    Participant

    Yes, you are right. I do a lot of my testing from the puzzle editor, which is where I tried this puzzle combo. For some reason this combination did not work for me inside the puzzle editor. Now I understand that sometimes, you need to test your Verge3D HTML scene to see if everything behaves. Thank you

    #68940
    kdv
    Participant

    For some reason this combination did not work for me inside the puzzle editor.

    Press the green button Play in the puzzles editor after adding new puzzles.

    Now I understand that sometimes, you need to test your Verge3D HTML scene

    Actually, it’s better test your apps in a separate window, not in the puzzles editor’s viewport, for more accurate results.

    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 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.