You are not logged in.

vr24

Beginner

  • "vr24" started this thread

Posts: 12

Location: Warsaw - POLAND

  • Send private message

1

Saturday, August 7th 2010, 12:15pm

The possibility of Groupping objects

Hi

Maybe now is possible , but i dont find this .

I request possibility of groupping objects for change some attributer for all objects .

For example :

<plugin name="One" Group="Background"

<plugin name="Two" Group="Background"
tween(plugin[Background].scale,0.5) or tween(Group[Background].scale,1) - which will change scale for both objects .

Like i thing this will simplify code .



Thanks

Radek Piotrowski
www.vr24.pl , www.warszawa360.pl
Radek Piotrowski
http://www.vr24.pl
Nodal Ninja, Autopano , Easypano Dealer

mindlessboss

Professional

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

2

Sunday, August 8th 2010, 1:30pm

you can use parent/children properties

Source code

1
2
3
<plugin name="Papa" ..... />

<plugin name="PapaChildren" parent="Papa" .... />


for example, if you change "Papa" alpha then "PapaChildren" alpha will change to
Good luck!
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

vr24

Beginner

  • "vr24" started this thread

Posts: 12

Location: Warsaw - POLAND

  • Send private message

3

Wednesday, August 11th 2010, 8:33am

The possibility of Groupping objects

This i know . The same is with visibility and enabled . But this dont work example with scale parameter or i do something wrong :>(

Thanks
Radek Piotrowski
http://www.vr24.pl
Nodal Ninja, Autopano , Easypano Dealer

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

4

Wednesday, August 11th 2010, 9:16am

Hi Radek,

There is the scalechildren="true" to allow scaling of the childs:

Quoted

krpano.com - krpano Flash Panorama Viewer (1.0.8.11) - RELEASE NOTES
=============================================================================
.....
- parent/child system:
- parent attribute for all plugins/hotspots
- usage:
parent="pluginname" or
parent="plugin[pluginname]" or
parent="hotspot[hotspotname]"
- the alignment of a child refers then to the parent
- can be changed dynamically
- "scalechildren" attribute - to scale also child plugins on parent
scaling, default="false"
.....
See at the parentchild example that comes inside Krpano dowloaded files... the hotspot[button4] is using the scalechildren attribute:

Source code

1
2
3
4
5
6
7
8
9
10
	<!-- scaling and rotating hotspot -->
	<hotspot name="button4" url="button.png"
	    	ath="-30"
	    	atv="30"
	    	zoom="true"
	    	scalechildren="true"
	    	onclickA="tween(rotate,223);tween(scale,2);set(onclick,call(onclickB));"
	    	onclickB="tween(rotate,0);tween(scale,1);set(onclick,call(onclickA));"
	    	onclick="call(onclickA);"
	    	/>


SAlut.

vr24

Beginner

  • "vr24" started this thread

Posts: 12

Location: Warsaw - POLAND

  • Send private message

5

Wednesday, August 11th 2010, 9:26am

Re: The possibility of Groupping objects

Big Thanks

I miss this parameter in my tests :>(
Radek Piotrowski
http://www.vr24.pl
Nodal Ninja, Autopano , Easypano Dealer

Similar threads