% wildcard selection does not work correctly in HTML5

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
skyfocus
Posts: 268
Joined: Sat Jun 12, 2010 10:52 am
Location: The Netherlands
Contact:

Hi,

Searching the forum for it but no match. Problem I'm running into is a selection issue with % in the skin-editor
Normally it is possible to select multiple instances with % sign in front of it. First thing I noticed it changed from a string that matches only on the beginning
of a name to a string that matches anywhere in a string. This messes up some of my menu's, I'm working around it now.
Bigger problem is that it now looks like the % is not working in the HTML5 output. Resulting in a messed op menu while showing on an iPad.
Is this a known issue ? I'm testing a menu I'm working on at http://media.sallandnatuurlijkgastvrij.nl/virtueletour/
When selecting Menu -> Zien & Doen -> Doen -> Sluit Menu ...... you can see that it works in Flash but in HTML5 some menu items are not removed.

Regards,

Arjan

Ps: I'm using pano2vr pro version 4.1.0 and just tried 4.5Beta2 pro 64bit, same result ....
Last edited by skyfocus on Mon Mar 17, 2014 2:14 pm, edited 1 time in total.
Windows 10 Pro x64, Pano2VR pro V6.1.13 , Browser latest Firefox
Website: https://www.skyfocus.nl/
User avatar
JimWatters
Posts: 329
Joined: Thu Oct 07, 2010 6:16 pm
Location: Saint John, New Brunswick
Contact:

Not sure if this is the case but the % is a special character. I think you need to double it up %%
User avatar
skyfocus
Posts: 268
Joined: Sat Jun 12, 2010 10:52 am
Location: The Netherlands
Contact:

JimWatters wrote:Not sure if this is the case but the % is a special character. I think you need to double it up %%
This is a special character used in the skin-editor to select multiple instances. I espect it to work in both flash and html5 output as it did in previous versions.

regards,

Arjan
Windows 10 Pro x64, Pano2VR pro V6.1.13 , Browser latest Firefox
Website: https://www.skyfocus.nl/
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Arjan,
hummmm, pulled up an old project and added five rectangles.
Rectangle 1
4 x Rectangle 2 (all have the same ID)

Rectangle 1 has the action Mouse Click, Toggle Visibility, Target: Rectangle 2

Without the % only the first Rectangle 2 hides and shows, the other three stay visible.
Add % to the Target, %Rectangle 2, then all four hide and show.

I then added two more Rectangles, with the ID's Rectangle and Rec.
The the same Target %Rectangle 2 these stayed visible.

Tested on Mac Book Pro with versions 4.1 and 4.5 beta 2.
All working for me.

The fact you list 64 bit, does this mean your on Windows? If so which OS are you using?
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
skyfocus
Posts: 268
Joined: Sat Jun 12, 2010 10:52 am
Location: The Netherlands
Contact:

Hopki wrote: The fact you list 64 bit, does this mean your on Windows? If so which OS are you using?
Regards,
Hopki
I'm on windows 8.1,

but did you try my example URL at http://media.sallandnatuurlijkgastvrij.nl/virtueletour/ on iPad ?
I've made a Tile-menu where submenus open, the wildcard % is used in the "Sluit Menu" button in the top left
of the screen. In flash everything closes as it shoold but on iPad (HTML5) it is not selecting the submenu tiles.
I'll try an make a minimum example project to show it ....

regards,

Arjan
Windows 10 Pro x64, Pano2VR pro V6.1.13 , Browser latest Firefox
Website: https://www.skyfocus.nl/
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Arjan,
Yes, you can also see this by disabling the flash plugin in your computers browser.
Please see attached a simple project with two text boxes toggling the visibility of rectangles with the same ID.
One has the % in the target and the other does not.
The without only toggles the first rectangle the one that includes the % toggle all of them.
This works in both Flash and HTML5 outputs.
Regards,
Hopki
Attachments
rectangles.zip
(218.58 KiB) Downloaded 236 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hang on, reading through the post agin your say your using the word "wild Card"?
The % is used to address elements with the same ID, not a wild card.
It sounds like you need to use regular expressions so you can have different ID's but then address all of them when you need to.
Example

Rectangle_01
Rectangle_02
Rectangle_03

Then a Target: #Rectangle_.* will address all ID's starting with Rectangle_.
Please see attached project.

It shows three different text boxes each showing a rectangle than a forth text box which hides all of them with a single action.
Regards,
Hopki
Attachments
rectangles_2.zip
(219.69 KiB) Downloaded 220 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
skyfocus
Posts: 268
Joined: Sat Jun 12, 2010 10:52 am
Location: The Netherlands
Contact:

Hi,

Maybe I'm using wild-card in the wrong sense of the word. I tried to find it in the skin-editor again, but it seems to be gone, but somewhere in the skin-editer there was a remark saying that when you want to address multiply ID's you can use %<part of ID> ... I'm using this from the very beginning of Pano2VR and lots of skins I made depend on it.
This behavior has changed now. First, it is not matching ID's with the string in the first part of the name but now it matches all ID's containing this string (no mater if it is at the beginning, middle or end of the ID's name).

I made a simpler test version to show exact what I mean.

See: http://www.skyfocus.nl/SkyFocus/Tours/test3/

There are 4 buttons and 6 fields. The ID names are in text on top.

What should happen (and this works in flash)

when pressing button:
%AB => All fields should gray-out except "ACF"
%AC => ACF, ABC AC and ABC should gray-out
ABC => only ABC grays-out
Reset (%A) => All field should be reset

When viewing this in HTML5, and I tried iPhone(4s) and iPad(3) latest OS versions and Firefox (flash disabled) on Windows,
only the button without the % (ABC) is working. If you like I can send you the demo project files.

regards,

Arjan

PS: I did not know that reg-exps where possible in the skin-editor ... when was this added ?
Windows 10 Pro x64, Pano2VR pro V6.1.13 , Browser latest Firefox
Website: https://www.skyfocus.nl/
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Arjan,
The text you are referring to was in the old skin editor when you selected an element's actions tab:
Screen Shot.png
Screen Shot.png (74.49 KiB) Viewed 6086 times
This should be used as my first project with rectangles with the same ID.
I know the Flash version worked differently and was doing what you wanted but this was not its intended use.

For what you are doing I would use regular expressions.
Regular expressions came out with Pano2VR 3.0.0 beta 2, 19th October 2010.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
skyfocus
Posts: 268
Joined: Sat Jun 12, 2010 10:52 am
Location: The Netherlands
Contact:

Ok, clear, reg-exps are very powerful so thats a great improvement and I will use that in new projects !
But .... there is no intention to make the % backwards compatible ? The % worked for me in all 3.xx versions of pano2VR I don't know when it exactly stopped
working, I did not test all versions but I started to noticed it that something went wrong in HTML5 in version 4.1.0 (it did cost me a full weekend debugging to find the problem). I have otherwise 952 skins to rewrite ......

regards,

Arjan
Windows 10 Pro x64, Pano2VR pro V6.1.13 , Browser latest Firefox
Website: https://www.skyfocus.nl/
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Arjan,
It was always the intention that % looks for the same ID and # is the regular expression.
This is a bug in Flash, please see: Issue #1016
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply