![]() Then one of the neat features of script builders is that, I can then navigate over to the script editor tab and the script that the builder has created, will be placed in here. If I take a look at one of the builders here, say set tag value, I can make it so that when the event handler for mouseenter fires, I want to set a particular tag and we'll go to our tag browser over here and navigate down to something maybe Ramp0, let's say, and we want to set that to a particular value. The script editor tab over here on the right, will instead let you write your own scripts. Things like navigation actions, setting a tag value, doing a SQL update or setting a property value. You can navigate between the different builders using these tabs up at the top. To make writing scripts a little bit easier, we have what's called script builders for some common actions that you can use to build the scripts for you. Once you have selected an event handler, you can then add a script that runs when that event fires. You'll notice I've selected the mouseenter event handler, which fires when the mouse enters the space over the source component. The event handlers are usually pretty self-explanatory as to when they fire, but if you select it, they also have an event description down here at the bottom of the window. With each one responding to a different type of event. ![]() The event handlers are split up over these different categories and I'll open them up here. ![]() The event handlers that a component has, varies depending on the type of component. Here in the scripting window, we can see a list of the event handlers for this component on the left. To access the event handlers on a component, simply right click on the component and go to scripting. And an event handler allows you to write a script, to handle how to respond to that event. Events are things that may happen to a component such as a property changing or the component gaining focus. ![]() In this lesson we'll take a look at how scripting and vision components is typically done using component event handlers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |