You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

panoyun

Beginner

  • "panoyun" started this thread

Posts: 31

Location: Somalia

  • Send private message

1

Thursday, April 30th 2020, 10:28am

Array of values, ask for help

<action name="action_dsyrxfpbetum" autorun="onstart">
def(test, array);
set(test[0], 'i1');
set(test[1], 'i2');
set(test[2], 'i3');
debugvar(test);
action_ojaidyewuqqg(get(test));
</action>
<action name="action_ojaidyewuqqg" scope="local" args="var1, var2, var3">
trace('var1=',get(var1));
trace('var2=',get(var2));
trace('var3=',get(var3));
</action>
INFO: var1=i1,i2,i3
INFO: var2=null
INFO: var3=null
What should I do

spacerywirtualne

Professional

Posts: 980

Location: Poland, Europe

Occupation: krpano developer : virtual tours

  • Send private message

2

Thursday, April 30th 2020, 12:14pm

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
<action name="action_dsyrxfpbetum" autorun="onstart">
def(test, array);
set(test[0], 'i1');
set(test[1], 'i2');
set(test[2], 'i3');
debugvar(test);
action_ojaidyewuqqg(get(test));
</action>
<action name="action_ojaidyewuqqg" scope="local" args="var1">
trace('var1=',get(var1[0]));
trace('var2=',get(var1[1]));
trace('var3=',get(var1[2]));
</action>


*smile*
Your own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube

cms4vr team *thumbsup*

panoyun

Beginner

  • "panoyun" started this thread

Posts: 31

Location: Somalia

  • Send private message

3

Thursday, April 30th 2020, 12:26pm

@spacerywirtualne

thank you
This is the result I want
Love you
*tongue* *tongue* *tongue*

4

Thursday, April 30th 2020, 5:43pm

i like your action names *tongue*

panoyun

Beginner

  • "panoyun" started this thread

Posts: 31

Location: Somalia

  • Send private message

5

Friday, May 1st 2020, 12:18pm

@indexofrefraction

Because there will be many actions in XML
In order not to repeat the action name
*g* *g* *g*

Similar threads