Pano2VR 7.1 Docs / Animated Hotspots

Animated Hotspots

Learn how to create an animated point hotspot in the Skin Editor using a skin variable with a Timer.

In this tutorial, we create a simple pulsing point hotspot graphic. To start, create a new skin or open an existing skin:

  1. Add a variable called ht_ani. Type = true/false, Init Value = false.

    Variable added.
    Variable added.

  2. Add a timer to the skin. The animation is driven by the timer.

  3. Remove the default logic block found in the Timer’s Visibility parameter.

  4. Set the Timer’s Type to Start.

  5. Set Timeout to .5 second.

  6. Set Repeat to Toggle. This ensures the actions will repeat.

  7. Add an action to change the variable’s value:

    • Source = Activate
    • Action = Set Variable Value
    • Variable Name = ht_ani
    • Operation = Not(⌐)
    • Value = true
      Action for the Timer
      Action for the Timer

Now create the point hotspot graphic that will animate. We’re using two rectangles that will pulse.

  1. Add a rectangle to the skin.

  2. Change it’s size to 32px x 32px.

  3. In the rectangle’s parameters, disable the background.

  4. Set the Border to 2 px.

  5. Set the Radius to 999.

  6. Change the border color to white.

    Action for the Rectangle
    Action for the Rectangle

  7. Set the graphic’s Scaling setting for both X and Y to 50% to reduce it’s size by half.

  8. Add a logic block to Scaling:

    • Trigger = ht_ani
    • Comparison = =
    • Value = true
    • x/y = 100%
  9. Enable Transitions in the logic block. Set Duration to .5 second. Now is a good time to check the animation in the Live Preview. The circle should appear to be pulsating.

    Scaling Logic Block with Transitions enabled.
    Scaling Logic Block with Transitions enabled.

  10. Change Alpha to 0.

  11. Add a logic block to Alpha to fade the icon in as it scales up.

    • Trigger = ht_ani
    • Comparison = =
    • Value = true
    • Alpha = 1.0
    • Enable Transitions for .5 seconds
  12. Select Hand Cursor.

  13. Copy and paste this Rectangle.

  14. Change its ID to Rectangle 2. Now we will reverse the animation to go from bigger to smaller.

  15. For this second rectangle, set Scaling to 100%.

  16. Change the Scaling logic block to 50% for X and Y.

  17. Set Alpha to 0.

  18. Change the Alpha logic block to have an Alpha of 1.00.

That’s the animation set. Now we need to apply this to a point hotspot template:

  1. Add a hotspot template.
  2. Give the template an ID. Use the default Skin-ID for node hotspots: ht_node. Pano2VR will use this as the Skin-ID for all node hotspots.
  3. Add the following action to the hotspot template:
    • Source = Mouse Click
    • Action = Open Next Pano
    • URL = Hotspot URL
    • View = Target View
  4. Select both Rectangles and the Timer and drag them on to the hotspot template while holding ALT or Option in the Tree. This will position them over the hotspot template. While they are selected, change the Anchor to Center and double-click on the word, Position to center-align them to the template.
    Rectangles Center Aligned
    Rectangles Center Aligned

Save the skin and apply to the output.

If you get stuck, check out the original tutorial below. This tutorial was created with version 5 and the workflow is slightly different, but is still helpful.

See also…

Last modified: Mar 14, 2023