How to create plugin scale +1?
I like to create a button that iciese scale plugin. +0.25 Each time you press.
For Scale not find anything.
A Slud and thanks
How to create plugin scale +1?
I like to create a button that iciese scale plugin. +0.25 Each time you press.
For Scale not find anything.
A Slud and thanks
Use the mul function and read the documention on actions. One problem though is that the results won't generally be what you expect fully based on z y and align.
I like to create a button that iciese scale plugin. +0.25 Each time you press.
use switch action
switch(scale, 1, 1.25, 1.5, 1.75, 2); set(scale,get(scale));
or use tween instead of set to make it smoother transition.
Huh? Shouldnt the switch be doing the setting? Why would you need it?
What do you except to scale?
- buttons, texts... or pano?
If you want to re-size "plugins...", like in my tours
(user can re-size the web browser, or click on "style buttons", all the plugins are automatically re-sized),
you should consider also the dynamic positioning ...
So, be inspired from "KrPano/examples/xml-usage/fix-aspect/fixaspect.html"...
Huh? Shouldnt the switch be doing the setting? Why would you need it?
i made is based off klaus example in the switch documentaion. but i see what you mean the set might not be needed in the scale case.
https://krpano.com/docu/actions/#switch
switch(destpos, -100, 0, +100); tween(y,get(destpos));
Hi,
here a simple example code:
here the value 1 will be added to the current scale and saved to the new variable "newscale",
then the tween action will be called to change the current scale to the value of the newscale varialbe,
best regards,
Klaus
Works perfectly.
Thanks for your time
Ation can be put on a particular plugin?
example:
<action name="demoaction1">
addplugin(demo1);
set(plugin[demo1].url,%SWFPATH%/images/a2.png);
set(plugin[demo1].align,top);
set(plugin[demo1].edge,top);
set(plugin[demo1].visible,true);
set(plugin[demo1].x,-300);
set(plugin[demo1].y,10);
set(plugin[demo1].onclick,add(newscale,scale,0.2); tween(plugin[boton1].scale,get(newscale)););
set(plugin[demo1].ondown,);
set(plugin[demo1].onup,);
set(plugin[demo1].zorder,1);
</action>
Display More
The function I want is that every time you press enlarge or scale scale + 0.2 - 0.2.
thanks
set(plugin[alphaA1].onclick,add(plugin[a1].newscale,scale,0.2); tween(plugin[a1].scale,get(newscale)););
this way:
set(plugin[alphaA1].onclick,add(plugin[a1].newscale,plugin[a1].scale,0.2); tween(plugin[a1].scale,get(plugin[a1].newscale)););
It worked perfect thank you very much.
Don’t have an account yet? Register yourself now and be a part of our community!