Sie sind nicht angemeldet.

mds

Fortgeschrittener

  • »mds« ist der Autor dieses Themas

Beiträge: 152

Wohnort: Athens, GA

Beruf: Designer

  • Nachricht senden

1

Donnerstag, 12. Juli 2012, 19:22

Help passing a variable from one action to another

Have any ideas why "zoomto(curfov,smooth());" is not working. The variable curfov isn't getting passed. I've dug through a bunch of variable, dereferencing, etc. threads and haven't come up with a good way to solve this.


Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
<hotspot onclick="openmodal" />

<action name="openmodal">
set(curfov,get(view.fov));
looktohotspot(get(name), %1, smooth(800,800,800));
set(plugin[modalclose].visible, true);
</action>

<action name="closemodal">
set(plugin[modalclose].visible, false);
zoomto(curfov,smooth());
</action>
Say "Hi!" on twitter

Zephyr

Profi

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

2

Donnerstag, 12. Juli 2012, 22:03

Quellcode

1
zoomto(get(curfov),smooth());


like that?

btw instead of

Quellcode

1
set(curfov,get(view.fov));


you can do:

Quellcode

1
copy(curfov, view.fov);

mds

Fortgeschrittener

  • »mds« ist der Autor dieses Themas

Beiträge: 152

Wohnort: Athens, GA

Beruf: Designer

  • Nachricht senden

3

Donnerstag, 12. Juli 2012, 22:06

Ah (get)! simple mistake, thanks!
Say "Hi!" on twitter