Studiocode Tutorials | 1.7 Capabilities - Code Window
This is going to be a short overview of the code window.
The code window is this window that I have open that for now is called untitled and it's used to code movie packages which might look something like this. I can create a code button double click on it and give it any sort of user-defined name that I like maybe I'll just call it bus and then I use this code button to mark points in the timeline based on where the playhead is so I'll go to code mode.
Here let it play I can pause the video in this case I can mark in to mark the beginning of this span of time and play the video to what I would consider the end of that event and single click on this button. Again you can see when I mark out a row is added to the timeline with the same name as the code button and I move the playhead out of the way. A little instance is here and I find double click on it another movie window opens up and we can see that instance play that's the general idea of a code window.
I've gone ahead and built another code window to demonstrate some of the other functionality so instead of having to mark in and out meaning click twice we can also set up code buttons to make them one click buttons so for example a fear coding an event that happens in a standard duration of time every time I could just click on this button called bus once and with one click it automatically in this case codes a four second instance.
Those fixed durations are also completely user-defined. You might also notice on the bus button that there's the letter S just below the name bus what that is is what we call a hotkey and the way that works is that in this case I can use the S key on the keyboard to replace having to click on the button itself so just for sake of example I'm going to press the S key on the keyboard right now and you can see with one press of that button and other instance is added to the timeline.
We might have also noticed that you can use pictures as buttons in some cases that might be more helpful if a picture is more intuitive than the text name of the button. You should also be aware of what we call labels labels are important because they let you add further layers of information to the instances.
In this case these yellow buttons here north west south and east are labels that belong to the bus code button so in my mind I would like to know which direction of this intersection a bus entered from there's one that's entering and in this case it's coming from the south part of the intersection so I'll rewind and what I want to draw your attention to is I'll play the video and then click on the South button that will with one click code of bus instance but also assign a South label to the instance so now with that one click I get another instance down in the timeline but if you notice when I hover my mouse over it there is a label that's south and you can see the group enters on top of it labels are important to be aware because that's where the real analytical power of Studio code lives and one of the first places you'll be able to take advantage of labels is in the matrix so keep that in mind as you watch further video tutorials and last but certainly not least is the fact that a code window is a template file meaning let me close the intersection one movie package.
I'll go ahead and open up an intersection to movie package you can see that this is a different intersection a different piece of movie but notice I have the same code window open so I can use it in the exact same way that if and when I see a taxi or bus cross the intersection from a given angle I can click on one of these labels and it activates a code and it works the exact same way so the code window is meant to be used as a template file with any movie package it doesn't know or care what movie package it interacts with and you can create an unlimited number of code windows as well.