Automating Door Animation with Navisworks Scripter: Creating Scripts with Multiple Events and Hotspot Triggers
Master Advanced Navisworks Automation and Interactive Door Controls
This tutorial builds on previous Navisworks Scripter lessons using the BIM361Complete.nwf model from Lesson 3. Ensure Scripter is enabled before proceeding.
Key Scripting Concepts
Multiple Events
Scripts can handle multiple trigger conditions using AND/OR logic operators for flexible automation control.
Hotspot Triggers
Invisible spherical zones that automatically execute scripts when users enter or leave the defined radius area.
Event Operators
AND requires all conditions to be true, while OR requires only one condition for script execution.
Event Operator Logic
| Feature | AND Operator | OR Operator |
|---|---|---|
| Trigger Requirement | All conditions must be true | One condition must be true |
| Door Example | Hold L key AND approach door | Hold L key OR approach door |
| Use Case | Restrictive control | User-friendly automation |
Setting Up Hotspot Events
Select Existing Script
Choose the leftDoorOpen script and add an On Hotspot event to modify existing functionality.
Configure Operator
Change the operand from AND to OR to allow either key press or proximity to trigger the door.
Set Sphere Parameters
Configure hotspot as sphere with 15-foot radius and set trigger condition to entering position.
Pick Door Position
Use the pick button to select the door and automatically populate the spatial coordinates in Navisworks.
The 15-foot radius creates an invisible sphere around the door. Users trigger the opening animation when entering this zone and closing animation when leaving it.
Complete Door Automation Setup
Allows either key press or proximity to open left door
Ensures both doors respond consistently to user approach
Automatically closes doors when user moves away from 15-foot radius
Verify both manual key controls and automatic proximity detection work
When animation is set to start from 'Start' rather than current position, doors may open unexpectedly during testing. Adjust this setting for smoother user experience.
Advanced Section Control Techniques
Dual Key Method
Use separate scripts with S for section and A for reverse, providing independent control over section animations.
Single Key Toggle
Configure key down for section and key up for reverse using the same S key for streamlined operation.
Creating Section Animation Scripts
Create Section Script
Make new script called 'section' with On Key Press event using S key and Cut Front animation from start to end.
Create Reverse Script
Make 'section reverse' script with A key that plays Cut Front animation from end to start position.
Optimize for Fluidity
Set section animation to start at current position to prevent jumping back to fully visible state.
Configure Single Key Control
Use S key down for sectioning and S key up for reverse to create toggle functionality.
Section scripts are particularly valuable for clash detection workflows when you have multiple section planes for different floors or need quick roof removal for interior visualization.
Automated vs Manual Script Control
This lesson is a preview from our Revit MEP Certification Course Online (includes software & exam). Enroll in this course for detailed lessons, live instructor support, and project-based training.
Key Takeaways