Problem about my layer-closing function

  • Hello,

    For my project I'm trying to make a side menu using a combobox which each item opens a layer with different room preview. I created my combobox, image layersand my open and close action. Everything works fine except my close function that is not working at all, here is the code:

    So what i'm trying to do is, each time i'm opening a layer, i first close the previously opened layer (wich is "selected_layer"). The trace function in close_submenu display the expected result so i guess my variable selected_layer is working well but i still can't disable and set him invisible.

    Anybody know where the problem is?

  • In the 'open_submenu' action change this:

    set(selected_layer,layer[%1].name);

    to this:

    set(selected_layer,%1);

    (or change it to 'set(selected_layer, get(layer[%1].name));' if you want to stick to getting the name again)

    Einmal editiert, zuletzt von s-maier (19. Dezember 2023 um 14:07)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!