send parameter to a scene with loadscene()

  • Hi all,

    Each of my panoramas are in <scene> tags, that I load with loadscene. The thing is I want the scene to load different images depending on a parameter I could provide in the loadscene(). For instance, I have a kitchen, which can be viewed classic, modern, old style...

    So my question is: can I modify my actual code below to send a parameter to the scene from loadscene()?

    Or do you think I have to write the same code thrice, one for modern, old, and classic style? It would be almost the same code, which is not very nice I think...

    my call to loadscene:

    Code
    loadscene(kitchen, "null", MERGE);


    my kitchen scene:

    Thanks a lot!

  • Thanks for your answer, I tried to find a different way since I have lots of other code in my scenes, and I wanted to avoid code duplication...

    But if there's no other solution I'll just do that!

    *thumbsup*

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!