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.

606r

Beginner

  • "606r" started this thread

Posts: 22

Location: Moscow, Russia

Occupation: Freelance

  • Send private message

1

Monday, November 30th 2009, 2:10am

How to increase or decrease autorotate.speed on arbitrary unit ?

Hi All!
I need two buttons, first for increase autorotate speed on 1, and second for decrease speed on 1, from current value of speed.
May be i need to use actions or set(autorotate.speed,[get(autorotate.speed)+1]) or something like this?

May be there is solution in this forum, but i can't find it. *confused*

Thanx

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

2

Monday, November 30th 2009, 3:13am

erase...

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

3

Monday, November 30th 2009, 3:14am

Hi 606r,

Quoted

May be i need to use actions or set(autorotate.speed,[get(autorotate.speed)+1]) or something like this?
Try this:

Source code

1
2
add(dst,autorotate.speed,1);
set(autorotate.speed,get(dst));


A possible code would be:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
	<autorotate enabled="true" 
        	waittime="1.0" 
        	accel="1.5" 
        	speed="10" 
        	horizon="0" 
        	tofov="100" 
        	/>

	<plugin name="-1" 
		....
		onhover="action(-1);" 
		/>
		
	<plugin name="+1"
		.... 
		onhover="action(+1);" 
		/>
	
	<action name="+1">
		add(dst,autorotate.speed,1);
		set(autorotate.speed,get(dst));
	</action>
	
	<action name="-1">
		sub(dst,autorotate.speed,1);
		set(autorotate.speed,get(dst));
	</action>


SAlut.

606r

Beginner

  • "606r" started this thread

Posts: 22

Location: Moscow, Russia

Occupation: Freelance

  • Send private message

4

Monday, November 30th 2009, 4:13am

Thanx a lot for quick reply!!

I am not alone not sleeping )