Setting scene image properties using an action

  • Hello,

    I'm trying to define the image for a new scene without having to write a list of every cube image. I've tried to use an action with a parameter for the path but it doesn't work.


    Can anyone give me an idea how to acheive the desired result?

  • Try this. its working in my test *wink*


  • That's solved my problem very well. Thanks v much Boss-Man.

    There's one last issue which would be really useful to work out.

    IIs it possible to set the preview image at the same time?


    Perhaps it needs to be set at the loadscene stage. Not sure of the syntax for doing that. any ideas anybody??


  • Hi nicoclark,

    You could try another approach...
    I think adding the preview to the scene content using a txtadd() action... Like this:

    Hope this help.

    SAlut.

    2 Mal editiert, zuletzt von michel (14. Juni 2010 um 13:56)

  • Hi,

    setting the preview image as parameter for the loadscene() call should also work,
    e.g.

    Code
    loadscene(scene, preview.url=preview.jpg, ...);

    best regards,
    Klaus


    Hi,

    I'm also trying to set the preview.url variable, but by passing it another variable and I struggle with the syntax.

    What works:

    Code
    loadscene(scene, preview.url=preview.jpg, ...);

    What doesn't:

    Code
    loadscene(scene, preview.url=get(var_name), ...);
    Code
    loadscene(scene, set(preview.url,get(var_name)), ...);

    What is the correct syntax, please?

    Thanks.

    Edit: I found the solution by passing loadscene a string built before the call.

Jetzt mitmachen!

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