Join Eric Wing for an in-depth discussion in this video Creating a script, part of Navisworks 2017 Essential Training.
Suppose we had an animation, that we would like to kind of make in to a movie, how would we do that? After all, creating an animation is kind of cool, but when would we use it? What we need to do is create a script that says run an animation when I get to within a few feet of the door. By creating a script, we can have what's called a hotspot to the door. The hotspot is a radius that we can use while we're walking. Once we cross into the hotspot, the door opens. Once we exit the hotspot, the door closes, so lets get started.
Let's go back into room 2015, and look at the door that we added the animation to. What I'd like to do, is grab the Scripter button, go to the Home tab on the Tools panel. You'll see Scripter in the middle. The first thing we need to do is add a new script. So with the Scripter dialog open, click Add New Script. The new script will be Door 2015, and we can hit Enter. We know that Door 2015 is something, but this is just a name. What we need to do next, is create what's called a hotspot.
So for our events, let's click on Hotspot. What we want is a sphere, let's hit the dropdown and let's trigger when entering, so essentially we're going to create a radius around the door and we are going to trigger it when entering, but we still don't know what we're triggering, so what we need to do is over to the right, we can use our Pick button. Let's pick a point on the door, right around where the handle is. For our radius, let's make it about six feet, and then we can hit enter. Now for our actions, what we need to do is hit the Play Animation button.
What do we want to animate? Well, let's hit the dropdown, let's drill into Door 2015. Let's animate the 2015 rotate. Keep pause at end, we're going to start it at current position, ending at end. So Door 2015 on hotspot, we're going to play an animation, starting at current position, ending at end. Once we get to within six feet of the door, its going to open. Let's make the door close. So again, let's Add New Script.
New Script, lets say Door 2015, close, hit Enter. On the event, the condition event is going to be on the hotspot. The hotspot is a sphere. Now we're going to trigger when leaving. Let's again pick the same point on the door. It doesn't have to be exact, but in the neighborhood, and let's make our radius be six feet again, and you can hit enter. One last time, we need to play the action, because we still don't quite know what we want to do when we get past the door.
Click the Play Animation button. The animation is going to be Door 2015. Drill into that. It's going to be 2015 Rotate. We're going to start, starting at start, ending at end. So now, let's just close out of the dialog. You can hit Escape a couple times. Let's go to our Animation tab. What we need to do is click on Enable Scripts, so click that. Let's walk towards the door, and as we get near the door, the door's going to open for us, and it's going to close.
We can turn around. Once we get past it, you'll see the door's going to close. This place seems haunted, doesn't it? By adding scripts, we can literally make a movie that Morgan Freeman should narrate.
- Appending and merging different file types
- Walking through your model
- Working with viewpoints
- Reviewing and marking up a model
- Manipulating and finding objects
- Adding links to objects
- Sorting and grouping
- Creating clash tests
- Adding a timeline with the Timeliner
- Creating material takeoffs
- Creating custom animations and scripts for an interactive movie
Skill Level Appropriate for all
Q: This course was updated on 05/09/2016. What changed?
A: We added one new tutorial on BIM 360 and a whole new chapter of videos on rendering in Navisworks.
Q. This course was updated 03/21/2017. What changed?
A. Three videos were updated in the first chapter. The following topics were also updated in chapters 8 and 12: creating a simluation for the TImeLiner, changing the survey point and project base point in Revit, finding and running Civil 3D Object Enablers, and combining Civil and Revit.
1. The Navisworks File System
2. Navigating in a Model
3. Working with Viewpoints
4. The Review Tab
5. Dealing with Objects
6. Sorting and Grouping
7. Clash Detection
8. The TimeLiner
10. Presenting, Animating, and Exporting
12. Combining Site and Buildings
Combining Civil and Revit3m 40s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.