Sie sind nicht angemeldet.

1

Freitag, 23. September 2011, 12:35

loadscene vars

hello,

I need help

I want to load the scene :

set (data [hlook].content, get(view.hlookat));
set (data [vlook].content, get(view.vlookat));

loadscene(scenea,view.hlookat=get(data[hlook].content)&view.vlookat=get(data[vlook].content),MERGE,BLEND(2));

but i have a Black screen with with the values ​​N/A for h/vlookat why ?


thank you

2

Montag, 26. September 2011, 18:02

Hi,

the syntax is not valid - the get() can't be used there - the get() can be only used to resolve one single parameter when calling an action,

here you would need to build the call first,
e.g.

Quellcode

1
2
3
4
5
<!-- build the call string and save it into a variable -->
txtadd(myloadscenecall,'loadscene(scenea,view.hlookat=',get(data[hlook].content),'&amp;view.vlookat=',get(data[vlook].content),',MERGE,BLEND(2));');

<!-- and call it -->
myloadscenecall();


best regards,
Klaus

3

Dienstag, 27. September 2011, 20:04

thank you klaus :)