Welcome back to our comprehensive Navisworks video series. In this installment, we'll advance your Scripter expertise by exploring multi-event script creation, with particular focus on the powerful On Hotspot event functionality. We'll continue working with the BIM361Complete.nwf model from your Lesson 3 folder, building upon the foundation we established in previous sessions.

Before proceeding, ensure Scripter is activated and navigate to the Scripter tab. Today's objective centers on enhancing our existing scripts—beginning with the leftDoorOpen script—by implementing intelligent automation that responds to user proximity and manual triggers seamlessly.

Our first enhancement involves creating an On Hotspot event that enables Scripter to automatically open doors as users approach them and close them upon departure. This proximity-based automation works in conjunction with the existing On Key Press events, creating a more intuitive and immersive navigation experience. With the leftDoorOpen script selected, access the On Hotspot function and observe that the operand defaults to "and".

Understanding operand logic is crucial for effective script behavior. The "and" setting requires both conditions to be true simultaneously for event triggering—meaning users would need to hold the L key while approaching the door. This creates unnecessary complexity. Switch the operand to "or" to enable either condition to trigger the action independently. This logical adjustment allows users to either approach the door naturally or use the manual L key override as needed.

Now let's configure the On Hotspot event parameters. The default sphere hotspot setting is optimal for our proximity detection needs. Set the trigger to activate when entering the invisible detection sphere, establishing a 15-foot radius as our starting parameter. While you might not know the exact spatial coordinates initially, Navisworks simplifies positioning through its pick function. Click the pick button and select the target door—Navisworks automatically populates the precise position coordinates. Since our animation play settings are already configured, no additional action modifications are necessary.

Testing validates our configuration's effectiveness. Select Enable Scripts and approach the door methodically. Upon entering the 15-foot detection radius, the door opens automatically—demonstrating successful proximity trigger implementation. Note that the door won't close automatically yet, as we haven't applied the On Hotspot event to the doorsClose script. You can still manually trigger door closure using the K key, though both doors may open if your animation start point is set to "Start" rather than current position.

Consistency across similar elements ensures professional implementation. Apply identical On Hotspot functionality to the rightDoorOpen script by first disabling Enable Scripts for safe editing. Navigate to rightDoorOpen, create a new On Hotspot event, change the operand to "or," and configure the sphere trigger for entering position with a 15-foot radius. While configuring, extend this automation to the doorsClose script by creating its On Hotspot event—but set this trigger to activate when leaving the position, maintaining the same location and 15-foot radius.


The complete automation cycle now functions seamlessly. Enable Scripts and test the full sequence: approaching triggers both door opening animations simultaneously, while departing the detection sphere activates the closing animation. The spherical detection zone ensures consistent behavior regardless of approach direction, creating natural user interaction patterns.

Fine-tuning animation timing enhances user experience significantly. With Enable Scripts disabled, return to the Animator tab to adjust door opening and closing duration. Reducing animation time to one second creates snappier, more responsive interactions that feel natural during navigation. Re-enable Scripts to test the improved timing—the faster response maintains immersion while providing clear visual feedback.

The beauty of this hybrid approach lies in maintaining manual override capabilities. Users can still activate doors manually using L, R, and K keys, providing flexibility for different interaction preferences and accessibility needs. This dual-mode functionality exemplifies professional BIM tool implementation.

Let's expand our scripting repertoire by creating additional automated features. With Enable Scripts disabled to prevent door interference, we'll develop scripts for the Section Front animation created in previous lessons. This demonstrates Scripter's versatility beyond door automation.

Create a new script named "section" with an On Key Press event using the S key. Configure the action as Cut Front animation, starting at start and ending at end. Professional implementation requires providing users with intuitive exit strategies, so create a complementary "section reverse" script with On Key Press event using the A key on key down. Set this action to animate Cut Front from end to start, effectively reversing the section cut.

Test this basic implementation: pressing S activates the section cut, while pressing A reverses it. However, we can achieve more elegant control by consolidating these functions under a single key. Modify the section reverse script to use on key up for the S key, while setting the section script to key down S. This creates intuitive hold-to-section functionality that feels natural to users.


For optimal fluidity, adjust the section animation to start at current position and end at end. This prevents jarring jumps when reactivating the script, ensuring smooth transitions that maintain user immersion throughout the sectioning process.

The practical applications of this functionality extend far beyond demonstration purposes. Enable Scripts and test from various project locations—the sectioning capability works universally, allowing instant building analysis from any viewpoint. Hold S to maintain the section view, release to restore the complete building visualization. This approach proves invaluable for clash detection workflows, especially when working with multiple section planes representing different floor levels.

Consider advanced applications: assign specific keys to different building elements (R for roof removal, for instance) to create rapid visualization tools that surpass simple object hiding. The animated transitions provide contextual understanding that static visibility toggles cannot match, making complex spatial relationships more comprehensible for project stakeholders.

As you explore the creative possibilities within Animator and Scripter tools, you'll discover their potential for transforming standard BIM navigation into engaging, intuitive experiences. These tools bridge the gap between technical functionality and user-friendly interaction, making complex building data more accessible to diverse project team members. The investment in mastering these capabilities pays dividends in presentation quality and collaborative effectiveness.