set and copy hotspot, itself

  • I'm currious why it's not working the following codes :(
    Only tween(hotspot[%1].alpha, 0.1, 2); is working.

    any idea why it is??



    I think it could be relative to Global, Local variable concepts.
    The variable, hs, is used in other action.

    If I set hs usage limited in a certain action, it's enough to set its scope is local?
    Please help me understand. Thank you for your explanation.

  • Klaus, please, I'm adding to Kabkee request also:

    Can you shed some light into the action's scope?
    When scope=localonly the

    Code
    copy(hs, global.hotspot[myhotspot]);


    creates the hs object, which we can use further as
    set(hs.visible, false);
    ...
    But when scope=local the

    Code
    copy(hs, global.hotspot[myhotspot]);


    does not create any hs object.

    Am I missing a point of the scope?
    Thank you,

    Pavel

  • Zitat


    Try this code.

    Code
    if(hotspot[%1],
    	copy(hs, hotspot[%1]);
    );
    callwith(hs, tween(alpha, 0.1, 2));


    Piotr

    I never thought this kind of way.
    I will try this later. Thanks.

    By the way, I'm just telling....
    It's sometimes not working changing some attributes for example,
    tween( hs.scale, 1, null, null, action() ); is not working
    tween( hs.alpha, 1, null, null, action() ); is working :(

    Have any similar experience?
    *rolleyes*

  • By the way, I'm just telling....
    It's sometimes not working changing some attributes for example,
    tween( hs.scale, 1, null, null, action() ); is not working
    tween( hs.alpha, 1, null, null, action() ); is working :(

    Have any similar experience?

    I had problems with some parameters, e.g. ox and oy. The solution was to earlier declare these values in the plugin or hotspot. But that was some time ago in previous versions of KRpano.


    regards
    Piotr


  • I had problems with some parameters, e.g. ox and oy. The solution was to earlier declare these values in the plugin or hotspot. But that was some time ago in previous versions of KRpano.


    regards
    Piotr

    Thank you for sharing, Piotr.
    :)

    And..
    I got a chance to peer your site and the example - https://cms4vr.com/projects/sculptor/
    Very Impressive.

    One thing that I'd like to comment is that
    It would be better if Autorotate is off when an user clicks the 'HELP' icon.
    When the instruction is coming up and showing how-to, krpano idle time is run out and autorotate is started unexpectedly.
    Though so, cms4vr.com seems to be a great service. Good *thumbup*

    Kabkee Moon.

  • nd..
    I got a chance to peer your site and the example - https://cms4vr.com/projects/sculptor/
    Very Impressive.

    One thing that I'd like to comment is that
    It would be better if Autorotate is off when an user clicks the 'HELP' icon.
    When the instruction is coming up and showing how-to, krpano idle time is run out and autorotate is started unexpectedly.
    Though so, cms4vr.com seems to be a great service. Good


    Of course, you are right.
    Thank you for your valuable comments. *smile*

    I will immediately fix all the templates and I will make their new versions available as soon as possible, of course for free. *thumbup*

    best regards
    Piotr

  • Of course, you are right.
    Thank you for your valuable comments. *smile*

    I will immediately fix all the templates and I will make their new versions available as soon as possible, of course for free. *thumbup*

    best regards
    Piotr

    I'd like to try out your service :)
    I just have followed cms4vr facebook.
    I wish to hear good news from you so soon by facebook page. *thumbsup*

    Kabkee

Jetzt mitmachen!

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