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.

1

Saturday, September 18th 2010, 7:27pm

Set krpano area via action ?

hi,

i'm using the area feature :

Source code

1
<area  x="33%" y="0" width="67%" height="100%" />

works fine

but i'm wondering if i can set this dynamically via action like this :

Source code

1
2
3
4
5
6
<action name="area">
	set(krpano[area]).x, 33%;
	set(krpano[area]).y, 0;
	set(krpano[area]).width, 67%;
	set(krpano[area]).height, 100%;
</action>


is this do-able now or in the futur ??

Thanks

D

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

2

Saturday, September 18th 2010, 7:32pm

Hi zadda,

wrong:
set(krpano[area]).x, 33%;
corrected:
set(krpano[area].x, 33%);

Source code

1
2
3
4
5
6
<action name="set_area">
	set(krpano[area].x, 33%);
	set(krpano[area].y, 0);
	set(krpano[area].width, 67%);
	set(krpano[area].height, 100%);
</action>


or:

Source code

1
2
3
4
5
6
<action name="tween_area">
	tween(krpano[area].x, 33%);
	tween(krpano[area].y, 0);
	tween(krpano[area].width, 67%);
	tween(krpano[area].height, 100%);
</action>


SAlut.

3

Saturday, September 18th 2010, 11:25pm

Thanks for correcting ,
but it doesn't works for me, have you got live example like pressing a btn to tween the area for example,
i don't figure out what's wrong in my code ?? *confused*


ah OK, found it :

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
      <action name="set_area">
	set(area.x, 33%);
  	set(area.y, 0);
  	set(area.width, 67%);
  	set(area.height, 100%);
	</action>

and
<action name="tween_area">
	tween(area.x, 33%);
	tween(area.y, 0);
	tween(area.width, 67%);
	tween(area.height, 100%);
	</action>


Thanks, problem fixed *g*

This post has been edited 1 times, last edit by "zadda" (Sep 18th 2010, 11:40pm)


michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

4

Saturday, September 18th 2010, 11:33pm

Sorry *rolleyes* ,

Source code

1
2
3
4
5
6
<action name="tween_area">
	tween(area.x, 33%);
	tween(area.y, 0);
	tween(area.width, 67%);
	tween(area.height, 100%);
</action>


SAlut.

5

Saturday, September 18th 2010, 11:54pm

another question...

ok i move my pano area to fill 2/3 of screen,
my goal was to fill up the 1/3 empty with the maps plugin,
but it seems maps want to stay over pano area, even with negatives values,

Source code

1
tween(plugin[maps].x, -33%, 0.4);

is this possible to get maps and pano side by side ? or maps plugin must stay over pano ?? *confused*

I find it : add parent="STAGE" in plugin attributes, that's it *g*

This post has been edited 1 times, last edit by "zadda" (Sep 19th 2010, 12:19am)