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.

mindlessboss

Professional

  • "mindlessboss" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

1

Wednesday, October 5th 2011, 2:48am

Feature request - Action return value

Hi Klaus

Is there a way to make action return value?

for example:

plugin name="bla" url="bla" width="get(stagewidth)" - width will equal to stagewidth

or

action name="mygetvalue"
copy(tempvalue,stagewidth);
sub(tempvalue,20);
copy(returnvalue,tempvalue);
action

and use

plugin name="bla" url="bla" width="mygetvalue(stagewidth)" - width will equal to returnvalue of mygetvalue action

Regards

Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Thursday, October 6th 2011, 3:57pm

You can do that in onclick with a couple more steps.

plugin name="bla" url="bla" width="0" onclick="mygetvalue(get(name))"

action name="mygetvalue"
copy(tempvalue,stagewidth);
sub(tempvalue,20);
copy(returnvalue,tempvalue);
set(plugin[%1].width, returnvalue);
action
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

mindlessboss

Professional

  • "mindlessboss" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

3

Thursday, October 6th 2011, 6:25pm

sacha, thanks, i know that

but i want to get value directly

for example

plugin name="bla" width="get(stagewidth)"

or

action name="bla"
add(returnvalue,%1,100);
action

plugin name="bla" width="bla(200)" - width will be 300

Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

4

Sunday, October 30th 2011, 2:58pm

I second this request. It would make a lot of things easier to code.
PanoTag: Facebook tagging for krpano

KRPano development and more: http://www.digisfera.pt/en/development

Zephyr

Professional

Posts: 994

Location: Netherlands

Occupation: Web developer

  • Send private message

5

Monday, October 31st 2011, 11:49am

this would be nice.

Atm I use temporary values that get read after the action call

someaction();
<!-- someaction() sets _RETURNVALUE -->
copy(plugin[test].x, _RETURNVALUE);
3d childrens game using krpano Game
Minify your xml with my krpano XML Compressor
Krpano XML Parsing Error Checklist
Available for hire (krpano xml, javascript, actionscript, flash, php and ipad plugins).

Zephyr

Professional

Posts: 994

Location: Netherlands

Occupation: Web developer

  • Send private message

6

Wednesday, November 2nd 2011, 1:53pm

this would alsoo be nice in a translate action

Source code

1
2
3
4
5
6
7
8
9
html="t(a_nice_title)"

<action name="t()">
   set(currentlanguage, uk);
   txtadd(languageselector, get(currentlanguage), '_', %1);
   return data[get(languageselector)].content;
</action>

<data name="uk_a_nice_title">Hello</data>


Please implement this Klaus <3
3d childrens game using krpano Game
Minify your xml with my krpano XML Compressor
Krpano XML Parsing Error Checklist
Available for hire (krpano xml, javascript, actionscript, flash, php and ipad plugins).