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

Sunday, June 12th 2016, 12:04am

how can I do this? height + height (Solved)


how can I do this?
delayedcall(1, tween(plugin[demo].y,get(plugin[demo].height + height)));

This post has been edited 1 times, last edit by "ArturoJM" (Jun 12th 2016, 12:30am)


Timescale

Trainee

Posts: 120

Location: Netherlands

Occupation: Archaeologist, Timescale R&D

  • Send private message

2

Sunday, June 12th 2016, 12:10am

http://krpano.com/docu/actions/#add


You can't simply use opperators like that. You need to either do it in pure JS, or use the math functions like add, which you can find in the documentation.

3

Sunday, June 12th 2016, 12:16am

Thank you

4

Sunday, June 12th 2016, 12:28am

if someone finds it useful .

delayedcall(1,
set(val, get(plugin[demo].height));
add(val, get(plugin[demo].height));
trace(val);
tween(plugin[demo].y,get(val)));

5

Monday, June 20th 2016, 8:11pm

delayedcall(1,
mul(val, get(plugin[demo].height),2);
tween(plugin[demo].y,get(val));
);

6

Wednesday, June 22nd 2016, 9:35pm

Hi,

you could also calc - e.g.:

Source code

1
tween(plugin[demo].y, calc(plugin[demo].height * 2));


Best regards,
Klaus