Tour with Auto View States Project

Q&A about the latest versions
Post Reply
User avatar
Posts: 9923
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK

Tue Feb 04, 2020 7:56 pm

Here is an interesting project that uses a timer, custom node ID, variables and a tag.
The request was to have a multi-node tour but some of the nodes to have different view states, panoramas taken at different times for the same node. The different view stats should automatically scroll around.

Open this link ... ates_timer

Use the hotspots to change nodes. Go to node 2 and wait for 5 seconds, it will start to change view states.
In the attached project the main tour has the date 2010, but node two then has view states changing to 2011 and 2012.

The nuts and bolts
All nodes have a UserData Title and Description.
These are used to display the title of the node while the description is used to display the date, so only for display purposes only.

However, the nodes that have "View States" have the addition of a custom Node ID, I am using vs1, vs2 and vs3 for the three View State nodes in this project.

You will also see that in Panorama Two (vs1) I am using the Source text box to enter the next View State node that should open.
So in the node vs1, it has vs2 in its source text box. Node vs2 will have vs3 in the source text box and so on.

1.png (25.1 KiB) Viewed 1715 times

The nodes that have view states also have the tag "vs".

2.png (12.61 KiB) Viewed 1715 times

In the skin there is a text variable called "node", there is another but this is the one needed for the project.
The only other needed element is the timer, Node Change Timer.
This is set to Type: Start
Timeout: 0.000
Repeat: Toggle

This also has actions that control the project.
The first action:

3.png (23.94 KiB) Viewed 1715 times

On node change, this sets the timeout value to the timer to 5 seconds.
To stop this happening in every node it has an action filter:

4.png (19.71 KiB) Viewed 1715 times

This will only allow the action to execute when the node has the tag "vs".
The next action is also a Node Changed action but this time to stop the timer.

5.png (24.87 KiB) Viewed 1715 times

This has the action filter looking for nodes that do not contain the tag "vs".

6.png (20.56 KiB) Viewed 1715 times

The next action resets the variable "node" on each node change.

7.png (27.63 KiB) Viewed 1715 times

The next action:

8.png (27.85 KiB) Viewed 1715 times

This sets the custom ID of the next view state node that should be opened by the timer as soon as the timer starts. It will set whatever is written in the UserData Source text box of the current node into the variable. In this case, Panorama Two which is vs1, will write vs2 as this is the next view state node.

The last action

9.png (31.52 KiB) Viewed 1715 times

This will change the node when the timer deactivates using the custom node ID in the variable.
That's about it.
(156.92 KiB) Downloaded 17 times
Post Reply