Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

Kabkee

Schüler

  • »Kabkee« ist der Autor dieses Themas

Beiträge: 76

Wohnort: South Korea

Beruf: South Korea

  • Nachricht senden

1

Dienstag, 6. November 2018, 12:59

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??


Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
if(hotspot[%1],
	set(hs, hotspot[%1]);
);
tween(hs.alpha, 0.1, 2);

OR


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



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.

2

Dienstag, 13. November 2018, 18:20

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

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

Quellcode

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

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

Quellcode

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

does not create any hs object.

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

Pavel

Beiträge: 814

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours

  • Nachricht senden

3

Dienstag, 13. November 2018, 18:53

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


Try this code.

Quellcode

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


Piotr
You own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: facebook group :: youtube

cms4vr team *thumbsup*

4

Dienstag, 13. November 2018, 19:10

not sure tween works with objects

remember tween can accept multiple properties and values separated with |
( example hotspot[%1].alpha|hotspot[%1].rotate, 1|90 )
so these are strings which get parsed and hs.alpha is nothing if parsed as string
you need hotspot[%1].alpha

in this sense i doubt that the callwith solution works...

Beiträge: 814

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours

  • Nachricht senden

5

Dienstag, 13. November 2018, 20:52

in this sense i doubt that the callwith solution works...
I use this method for long time and work ok ... *smile*



Piotr
You own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: facebook group :: youtube

cms4vr team *thumbsup*

6

Dienstag, 13. November 2018, 22:32

well on second thought... you're right of course :)
it works because in this scope you can use the owners properties directly (scale, alpha, rotate, etc, etc)
*thumbup*
but the args are still strings, you cant use an object

Kabkee

Schüler

  • »Kabkee« ist der Autor dieses Themas

Beiträge: 76

Wohnort: South Korea

Beruf: South Korea

  • Nachricht senden

7

Mittwoch, 14. November 2018, 02:42

Zitat


Try this code.

Quellcode

1
2
3
4
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*

Beiträge: 814

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours

  • Nachricht senden

8

Mittwoch, 14. November 2018, 09:48

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
You own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: facebook group :: youtube

cms4vr team *thumbsup*

Kabkee

Schüler

  • »Kabkee« ist der Autor dieses Themas

Beiträge: 76

Wohnort: South Korea

Beruf: South Korea

  • Nachricht senden

9

Mittwoch, 14. November 2018, 10:36


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.

Beiträge: 814

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours

  • Nachricht senden

10

Mittwoch, 14. November 2018, 10:42

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
You own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: facebook group :: youtube

cms4vr team *thumbsup*

Kabkee

Schüler

  • »Kabkee« ist der Autor dieses Themas

Beiträge: 76

Wohnort: South Korea

Beruf: South Korea

  • Nachricht senden

11

Mittwoch, 14. November 2018, 10:55

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