Sie sind nicht angemeldet.

1

Donnerstag, 11. April 2013, 18:23

Variables

Is there a way to set a variable when a scene loads such that the variable is accessible in all actions?

Thanks,
Ben

2

Donnerstag, 11. April 2013, 22:53

Hi!
just use set() action
for example:
set(MY_VAR,some_value); - will set some_value to MY_VAR
get(MY_VAR); - will get value from MY _VAR

trace(get(MY_VAR)); - will show some_value in log window.

all variables is global

Hope it help
Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

3

Freitag, 12. April 2013, 14:55

Variable Clarification

So when you say all variables are global does that also include variables set within an action?

Thanks,
Ben

4

Freitag, 12. April 2013, 23:20

Hi!
Correct.
if you set some value in an action, then you can get value in other action.

Rgarads
Andrey
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

5

Montag, 15. April 2013, 15:05

Thank

Andrey,
Thanks for the help!

-Ben