You are not logged in.

panoyun

Intermediate

  • "panoyun" started this thread

Posts: 234

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: 1,117

Location: Poland, Europe

Occupation: krpano developer : virtual tours : the cms4vr owner

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

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

panoyun

Intermediate

  • "panoyun" started this thread

Posts: 234

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

Intermediate

  • "panoyun" started this thread

Posts: 234

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