lookto with view.hlookat variable.

  • Hi all, trying to get a script to work but I am having problems:

    The trace is in there as I am trying to see what value is passed to lookto. The value in v1 is correct but the lookto command causes the flash screen to go blank.

    Now if I put the following code in it all works fine. It obviously has something to do with the view.hlookat variable:

    Code
    <action name="previewscene">
    
    
      set(v1,45);
      trace(get(v1));
      lookto(get(v1),45,35,smooth(100,20,50));
    
    
    </action>

    Any help would be appreciated.

    Cheers,
    Marcus

  • Hi Marcus,

    Try to get the variable direct:

    SAlut.

  • Ignore me, I found the answer in a related post. *g*

    Here is my working code:

    I am using the code for an embedded panorama on my website to preview it after loading. It looks left 30° right 60° then back to the original starting view.

    Thanks for taking the time to comment michel.

    Cheers,
    Marcus

Participate now!

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