Icons

Studiocode Tutorials | 6.8 Labels & Groups - Exclusive Links and Labels

NOTE: Beginning December 31st, 2017, development of Studiocode and iCoda will stop and new licenses will not be available for purchase. Please consider Vosaic as a replacement. Read More.

Transcript

In this video tutorial we're going to cover how exclusive links work specifically in relation to labels and code buttons as opposed to between two code buttons which is quite a different behavior.

So I just want to draw that distinction to start with also let's take a look at what I have in the code window so far which are these maneuver labels like if the vehicle went straight or made a turn. Again the direction from which it entered the intersection and whether that applies to a taxi or bus and you can see the taxi and bus are the code buttons all the yellow items are labels.

So let's go ahead and code something with this set of functionality. So far I'm already in code mode I just want to point out what's interesting about this moment in time is that there's actually a taxi and a bus in the intersection at the same time so let's say the taxi came from the south and it went straight so I'll click on this straight which activated south which activated taxi and then let's say with the bus I came from the north that's also going straight so I'll click on this straight which turned on north which activated bus but what's really important to recognize at this point is that if you watch previous video tutorials you should already know that by default the way labels behave is that they spray out to any code button that may be open so a moment ago when I clicked on straight which activated north both of those labels actually sprayed out and got applied to taxi which was already on the activation.

Links don't control where the labels go they only control what gets activated so let's end actually let's play the video a little bit further I'll marked out of bus and taxi. Now let's hover over these instances and let's go to taxi in particular because now you can see that the labels that got applied to this given instance there's the two straights but now it has a north and a south label which is contradictory and you know inaccurate information.

So the way to restrict labels from doing this sort of spraying behavior to all codes is via the exclusive link so let's go back to edit mode and I'm going to go to this straight label and you know a label or always has to be applied to a code conceptually so exclusively linking it makes sense to do to the code button itself as opposed to other labels.

So you can kind of see that new line segment there which is this a light blue segment. So I'm going to go from between this straight and bus I'll go from this turn to bus and this north to bus. Now you might imagine I would repeat this process for all these given labels then the easiest thing would probably be to just do a copy of the whole group and recreate the taxi group so I didn't have to relink but for sake of example let's just say that I have three exclusive links between these given labels here and the bus code button and we'll do the exact same thing I did a minute ago just so you can see how this now behaves so let's get rid of these instances.

Okay now let's go back to code mode here on the code window and let's just rewind back to that sort of same point so you can see that there's both a taxi and the bus in the intersection will do the same thing we did a minute ago so this taxi is going straight coming from the south. Now we have taxi activated and I'll do the same thing here where the bus is going straight coming from the north but now because of these exclusive links let's let it play out you know and both bus and taxi but as I was saying now because of those exclusive links if I hover over taxi we can see that it only or that instance only got those two labels meaning the south and its own straight label so that information is more correct so exclusive links between labels and codes prevent the labels from doing the spring or Anna said differently it restricts the labels to only being applied to the given code button that it is exclusively linked to.

Thanks for watching.

Learn How Vosaic Products Can Help You Improve Performance.

Subscribe to our blog for tutorials, announcements, and updates.

We need your contact details to provide you with support, answer sales questions, and inform you about our product updates in a timely manner. We also provide many exclusive subscriber-only offers. Please check to subscribe. Check our privacy policy for the details on how we protect and manage your submitted data. You can unsubscribe anytime.