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.

Home Forums General Questions hide object on load / startUp

Viewing 11 posts - 16 through 26 (of 26 total)
  • Author
    Posts
  • #71010
    Claas
    Participant

    XEON your if then approach and switch fr the list does the trick.

    Logic

    I can now with a mouse click turn objects on and with a second click turn it off

    I did the show hide first manually for all objects but this is madness and having learned how the list tool works makes this so much easier to script.
    Even adding a timer I figured out. I work and teach in 3D modeling so scripting is like black magic for me but Verge3D makes this much easier to try.
    I was first looking into Godot but this is too daunting – also for my students.

    Now I can go back and delete all the hours of work I did and rebuild the logic with 10% of the commands ;)

    • This reply was modified 2 months, 1 week ago by Claas.
    Attachments:
    You must be logged in to view attached files.
    #71013
    Claas
    Participant

    when I click one light objects the light cone and error message is displayed
    if I click the same light object again the cone and error is hidden

    Just check visibility.

    I looked at your puzzle – do I see this right that we can populate a list with hidden objects this way?

    You all must laugh at my kindergarten questions

    #71014
    kdv
    Participant

    do I see this right that we can populate a list with hidden objects this way?

    Have no idea what are you talking about :unsure:

    That puzzle set just shows that every object already has its visibility state. There is no need to use some additional variable. You just can read the visibility state right from the object itself.

    Puzzles and JS. 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 meaning at all.

    #71015
    Claas
    Participant

    no surprise you don’t know what I’m talking about – I don’t know it either lol
    I get your explanation now – this would work with multiple objects too since turning on one object will hide all others – I thought a list is bets fo that to sort stuff?

    my logic seems to work well besides that

    after I click on the red icosphere to show it
    and then while it is visible click on the blue icosphere
    it only hides everything but does not show the blue cube and sphere

    logic

    • This reply was modified 2 months, 1 week ago by Claas.
    • This reply was modified 2 months, 1 week ago by Claas.
    Attachments:
    You must be logged in to view attached files.
    #71019
    kdv
    Participant

    Upload your app in zip and post the link here

    Attachments:
    You must be logged in to view attached files.

    Puzzles and JS. 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 meaning at all.

    #71021
    Claas
    Participant

    Upload your app in zip and post the link here

    I did – it is called “Test App.zip”

    #71022
    Claas
    Participant

    here is an older logic I tried and to make it faster I thought to use lists
    logic
    with more than 14 objects to turn on off those puzzle command chains would get super long

    • This reply was modified 2 months, 1 week ago by Claas.
    Attachments:
    You must be logged in to view attached files.
    #71024
    xeon
    Customer

    The addition of the timer setting a variable means your hide and show states can get delayed or messed up.

    With this new wrinkle you woukd be better off using the when visible approach suggested by KDV.

    This way there is no chance of variables being in the wrong state when another object is pressed.

    Haven’t looked at your file yet … I am on the road but I am sure KDv can get you going in the right direction

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #71026
    kdv
    Participant

    Something like this should work

    https://v3d.net/te5

    Puzzles and JS. 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 meaning at all.

    #71031
    Claas
    Participant

    Something like this should work

    ah wow – I get the logic behind it.

    thank you for the demonstrations.

    #71059
    Claas
    Participant

    XEON and KDV

    thank you so much for your code / puzzle examples.

    I did settle for this simple logic which does what I need to do.

    logic

    It works very well – is short – easy to remember

    without you all telling me about how to make lists (XEON) and to check the visibility of objects (KDV) I would not have been able to get this together in this short time!

    Again thank you!

    • This reply was modified 2 months, 1 week ago by Claas.
    Attachments:
    You must be logged in to view attached files.
Viewing 11 posts - 16 through 26 (of 26 total)
  • You must be logged in to reply to this topic.