Page 1 of 1

Tags to manage actions

Posted: Sun Jun 10, 2018 8:19 am
by ArkiTonio
Hi.
How can I use tags to manage actions?...
In my case (with Pano2VR pro 5.2.4) I wish to make my menu partially disappear soon after loading (just to let the user see it and know it's there, to make it come back, if needed), but only for some panoramas.
So I built a menu, made it scroll outside the screen just after loaded, letting only a "..." text visible to make it come back when needed and it works with no problems.
But I wish this happen only for some nodes in my tour, all nodes sharing the same menu, of course. So I thought to use a tag: I assigned a tag called, say, "HideMenu", to those nodes for which I want the menu to scroll out, to manage this behaviour but... I can't make it work...
How can this be done?
Thank you.

Re: Tags to manage actions

Posted: Mon Jun 11, 2018 1:02 pm
by Mark360
Hi

I am new to Pano2vr as well but by how I understand things and learning all the time Tony who answer's a lot of questions says you can do it by using actions which you can.

If you use the actions and set it to show image on the set nodes it should work for you.

This is a great reference for you to read. Helped me simply a project I was doing.

viewtopic.php?f=6&t=12892&p=53870#p53870

Hope it helps.

Re: Tags to manage actions

Posted: Mon Jun 11, 2018 3:37 pm
by Hopki
Hi,
Using Tags is quite straightforward.
An element has logic blocks that can be used with its different attributes.
These logic blocks can react to a tag, as an example a if you add a rectangle in the skin editor then select the position logic block.
You can then set it that when the tag = xxx change position.

You can then also add a logic block to the Alpha, so if the element is set to Alpha 0, when the tag = xxx change to alpha 1.00.
In combination you can then slide the rectangle while fading it in to view.

This can the be applied to your menu.
In the attached project the rectangle is set so it is visible and position in the skin 5px from the left.
You will see a timer then when it deactivates will change the position to -160 and change the alpha to 0.
So on first open you see the rectangle for 2 seconds then it hides.

When a pano is opened with the tag it will show,
Regards,
Hopki

Re: Tags to manage actions

Posted: Mon Jun 11, 2018 11:36 pm
by ArkiTonio
Thank you, Martin, but what I asked for is something different...
I'm not talking about tags to manage properties (like position, alpha etc.). I'm talking about tags to manage actions (like Trigger Click).
So I ask again: is it possible to set an action like Loaded/Trigger Click/$self, but only if a tag is present in that node?

Re: Tags to manage actions

Posted: Tue Jun 12, 2018 12:43 am
by Tony
Hi ArkiTonio,

You may be referring to Action Filters. Here's an example of an Action (GotoURL) that is only active if a tag 'AllowAction' is present on the node.

https://s3-ap-southeast-2.amazonaws.com ... index.html

Here is a shot of the Skin Editor and Action Filter used in the example above;

Image

Here are the skin and project files.
action_filter.zip
(5.32 KiB) Downloaded 10 times
Hope this helps :)

Cheers,

Tony

Re: Tags to manage actions

Posted: Tue Jun 12, 2018 8:44 am
by ArkiTonio
Thank you, Tony, but I'm trying v. 5...
Isn't it there such a feature? Should I wait for a v. 6?...

Re: Tags to manage actions

Posted: Tue Jun 12, 2018 10:47 am
by Tony
Hi,

Yes V6 it's a new feature, very powerful.

Tony

Re: Tags to manage actions

Posted: Tue Jun 12, 2018 4:08 pm
by Hopki
Hi Guys,
The following only applies to V6.
I guess it would be down to when the action should be triggered?
As an example, on a node change then you could use the source, "Images Ready" which is V6 speak for loaded, and then an action with an action filter.
So when the node opens with the correct tag the action can be executed.

This can also work if you have button that when clicked will do different things in different nodes.
So the Source is changed from "Images Ready" to "Mouse Click".
The one button can have many actions but only the action with the correct tag detected will be executed.

You can also use a timer to "Drive" actions, not so relevant here but still worth knowing.
As an example add a timer set to Type: Init, Timeout: 0.01, Repeat: Toggle.
Then the timer can have the action, using the source Activated with a Action Filter.
So the timber will be toggling the action very quickly but when the tag is detected the action would be executed.

This would be good when you have an Action Filter with more then one condition, example:
When Tag = xxx and pan = xxx then trigger click.

Regards,
Hopki

Re: Tags to manage actions

Posted: Thu Jun 14, 2018 6:25 pm
by ArkiTonio
Thank you, guys.