Viewers: in countries Watching now:
Another way you can get access to attributes inside your nodes is through the attributes property. Once you retrieve this property, its values can be accessed in a number of ways. So you can look for them by numeric index, also by named index or dot notation. So, let's take a look at how that works. So here's my file, I'm going to get into the console, and I'll create a variable that accesses a specific node instance.
Let's test my node, and it has the first image, and that is this image right here. So, we can get to all the attributes inside this image by using my node and then type in attributes. When we hit Enter, you see that we have a node map, and it's a list of all the attributes in numeric order. Now this is a pretty interesting object, because it has attributes of both array elements, and also objects. So, you can get to the source attribute in a number of ways. It's the first attribute, so it would have an index of zero. And that works like an array.
You can also get to it by using source or SRC as the key. You can even get to it by using SRC in .notation. Unfortunately, these are read only values. So ,you can't really set them this way. It does give you the ability to read attributes as a list, which could come in handy in some projects.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.