You are not logged in.

  • "nonchiedercilaparola" started this thread

Posts: 148

Location: Italy

Occupation: Freelance Fotographer

  • Send private message

1

Wednesday, November 16th 2011, 8:12pm

simbol "%" in front of a variable name [%name] - krpano

Sorry for the stupid quest but i don't find anything to explain me what mean "%" on secondo istruction:


....
addplugin(get(pname));
set(plugin[%paname].children, false)
...


why is it added "%" in fronto af a "pname" (vaiable name)?

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Wednesday, November 16th 2011, 11:37pm

I believe this is ancient syntax and should not be used.

should be

Source code

1
set(plugin[get(pname)].children, false)
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

3

Thursday, November 17th 2011, 3:32pm

Hi,

right, it's the old syntax before the get() was available,
it can be still used, but only for 'simple' variables, using full paths like 'plugin[name].var' is not possible with that syntax,

best regards,
Klaus