Join Jim Cowan for an in-depth discussion in this video Creating script on a trigger, part of Navisworks Advanced.
- [Instructor] So the point of this short exercise is to create what's sometimes referred to as a trigger. In Navisworks, it's referred to as a script. It's something that initiates the scene animation. Let me move the time slider back to the beginning where everything was in place, and just put it at zero, so everything was assembled. I need something that tells this exploded model to begin as an animation, so when I'm presenting the building, I can run that animation.
It's under Scripter, and similar to before, add a new script. What do you want to call it? I'm going to call it the same name, Exploded Model as the animation that I'm going to use. I then have the option of telling it what event is going to actually initiate the animation. So if I look at the options here, the one that I'm going to use is the one that says on keypress.
On keypress, I can assign maybe the letter x to the script Exploded Model which runs the animation scene called Exploded Model. So on keypress, on the right side what key am I going to use to initiate that animation. I'm just going to type in x, x on pressing it down. Then the actions at the bottom, the choices available to me, play and animation. So I'm going to say play the animation that is called Exploded Model.
You pick that, double click to get it. So when I click on x, it's going to run the animation. You can change those settings to start at the end, and go to the beginning, or do whatever you want with the settings that are there. Important to know that the animation won't run if I close it, close both of those. The animation won't run until under the animation tab, you have turned on enable scripts. Enable scripts means that Navisworks is now listening for input from the keyboard, and also I'm going to click on the view to make sure the view is active.
Then I'm typing the letter x, and you see what happens is the roof comes up, the ceilings move off. I can be navigating at the same time, so I can be turning my model, explaining whatever I want to about the layout of the apartment unit, and whenever I hit x, it's like put things back to the beginning, run the animation.
If you don't have this Scripter, enable Scripter switched on, it won't run. So I can be looking at this anyplace in my model. If I do x like that, I can be navigating around, looking at my project, zooming in on whatever I want. I can use animated scenes in conjunction with the display of the model.
- Navigating the Navisworks user interface
- Creating Navisworks files
- Revit view templates
- Creating and reusing search sets
- Scene animation using search sets
- Exporting a viewpoint animation and a render animation
- Using grid plan views
- Appending and creating a clash view
- Updating the clash test
- Visualizing clashes