 And the top bar it would change the length accordingly depending of the location. So that was very handy and And it's very quick to do this try to do this another software and Yeah, it would take ages, but the next problem is that I need to look to locate Each of the blender objects Exactly where the anchor needs to be we are talking about Millimeters of accuracy that we need to provide for the builders to make this a work, but I'm going to do it. Well, maybe yeah, you can see here the anchor the blender anchor in the exact location So maybe it's time for Super Blender, but you might say don't be silly What are you gonna do? Are you going to get the default Q put in a cape and put it fly it around in the blender scene? And then put a hero position at the end. No, I'm not talking about that I'm talking About using About you see thank you. I'm talking about using Python plus blender and then you get Super Blender But I had a problem. I had coding phobia and I think some of you might have it too But yeah, how how you overcome this topic like I know that maybe all of you you want to get it more into Coding but you look too afraid because it's so complicated But it's easy just to you have to keep it simple start with the basic. I started coding for kids making easy games Keep it interesting and fun. It's like I've been trying to learn French and sometime on YouTube. I check Peppa Pig in French. I know it sounds silly but You start getting used to the this language this new language and it's the same with Python So in most of the time in my coding, I just use for loops and if a statement That's the only thing that I that I use. Well, not the only single month most of the time So I'm gonna show you here how the the for loop works Well, the the video is running But you can see that For I which is like a variable and Then we have something called here selected object. So this I This variable is gonna become The data of each object When we run when we run the loop what you see here at the bottom is just to to redraw the Screen and this is just to give you the chance to see it's just a delay for you to see the change That you saw just before But see I'm saying this object called cube Is equal to I the data of I and and what is the data of I the world is gonna change on Each iteration of the loop is gonna change through all the selected objects. So what you saw before is what happened so that's very very useful tool for programming and then if you put at if a statement So it's gonna be the same we have the for loop here and the if is saying when this data is equal to Suzanne The name of the data is equal to sustain Then you put the scale at two so you will see Suzanne now has a scale by two otherwise else Do nothing just keep it like a scale by equal to one So another example if we change to sound by icosphere and we press play you can see how it changed and When it when it gets when it got to the ice quest for the escape was to do So those are the the mainly the two structures that I usually use for coding in Blender and any you might ask both how you get all this line of code here Well, you can easily go to the you select the object go to the property that you are looking for your right click And then you can copy the full data path and then you paste it here and then you just basically You paste it here equal to two and that's it you can run this line hitting the in the console and Presenter and it's gonna do the change for you Yeah, I usually this console for me is very useful. I I even use DC as a calculator when I open my blender a project I Make a new window a small one and then here you can do math you can do put sign cosines everything This is very useful And I use it in every single product even if I'm not coding Okay, now we are going to see the demonstration how We are going to take all these selected anchors and we are going to position it Exactly where they have to go and you can see here the the for loop. Well here There is any for loop if obtain them, but that's because I want to grab the object that don't have any children And because that that's the master object and then another for loop that is essentially saying if you find an object within within this Area So in X and X location and Y location make it equal So I press play and then all the anchors Went to the exact the exact location. So that's a that's a win and now The next challenge will be to provide in a excel sheet all those The list of all the anchors with the property that I mentioned before Like ups Going back Going forward again. Okay Okay, what you see here is the coordinates of the project because as I mentioned was Eastern North and East and they have to be Like the global coordinates. So I just I just use that one because that came with the IFC folder and then Okay, another if a statement another forest them and with an if a statement just to grab them the parents with Just the parent and then here A for a statement and in this one I'm gonna get the length of the anchor so you can see children children and Dimension because that's the the length of this object here and then I need the length of the bottom object and after that some tweaking for the the values and Then here is when I'm writing See right lines is it here this where where when I write the lines in in my Excel sheet, but it's not a excel sheet. It's a CSV file and when I press play Look, it looks like maybe one or two second to provide a list of 315 anchors With all the values that I needed Thank you That's a nice celebration. It was getting happier It's time that something like this happened and then well, of course, we need we need to show all these anchors in the in a in a drawing And and to do that I just blame there again because with a with a few lines of scope I can make a label for each anchor and then a position that the label Close to the the object that is gonna be labeled With this distance so you can always change the distance I want the label to be a little bit higher So location zero is x location one is y and location two is that so what I'm saying is like Make the label at this distance from the original and make this label at this distance from the original in the set axis So when you press play see all the labels appear and then yeah, you have to tweak it a little bit to make it more readable And and then that's it. Then you what you can you can export this one as a an image and then just put it in a PDF file and that's what I did We have other software to do drafting but those of what don't do this And then the third challenge, which is the I think was the main one It was about communication because if you remember The supports oops go back if you remember this the support Each support is holding the bridge and there are some loads That the the supports are taking the the forces of the bridge and as you move Forward those forces are gonna change during the launching But how how you will show that to the operational team operational team they need this information because they need to know a What kind of jacks are we using to hold the bridge at each location? so we have supports here support here and We get this information from the The engineers team in this way Very as you can see there's no you can see the full picture of what is happening during the launching So In this one, I think we can use at the moment. I'm not sure you because this one was a Prey geometry know that was like two years ago and geometry know wasn't available But I think now with geometry know you can you can extract information from a CSV file I'm not sure but I did it using Python And essentially here I put this like wrong in the console and that's because I Just wanted to strike all all that data and make it at least in Python And what you have to mind is like each column has a number And that's what I'm when I'm doing the this is another very useful structure is called a function in Python So when you do when you do a function, that is something that you want to repeat each time And then as you can see as I put it there in In the in the console I can get all the data that I need But just by repeating copy pasting this one changing the number and then I will get the column Where I need the information from and then yeah after I have all the data in in Python. I mean in blender Then I can link all that data To objects in the scene like you see I have an arrow here, which is essentially a plane and And the tip of the arrow. So what is happening is that? with this script Depending of the distance of the launching It's gonna link link that distance to the value of the load and it's gonna be It's gonna change the scale of this plane and it's gonna change the the Location of this arrow And what you see here is just a function functions that I define before and I just keep just copy paste copy paste One thing that you have to be careful is make sure that you have all the data of your objects Well label because you need to find it later later on And well that something for sure is that the distance between two objects can be easily Defined using geometry notes both to show a The load from a list. I still don't know if that's something that it can be in geometry. No But at the moment yeah, I think you can do it using Python And this is an structure that you need if you want to run The script each time that you change the frame is called handlers and You can see when I when I change the The timeline I get the the values of the load and I get the scales of the of the arrow changing Accordingly in all the location so that that's been very helpful for the operational team and the the The civil thing all all the design team. They are loving this And it's so accessible that they don't believe it I tell them you don't need admin rights to install blender Just go download the portable version get it in your computer and open my file You can do whatever you want with my file Just press click to to make the script running and then you will see everything that I'm showing you but this this has too much potential and and One of the potentials that I can see That it's gonna have a Big value in the construction industry is that you can get the the data from a crane You can get the pdf online for a specific crane Because the capacity of a crane it changed depending of the configuration of it if your crane have the boom Extended so long the capacity is reduced and the same with the angle So by by having all this data and and look it's just a maybe 10 lines of code Putting some custom Constant custom properties you can see how the capacity of the of the crane changes Automatically, and I'm not using reading here. It's just drivers and and nothing complicated This object has all these constant properties and these objects. They have drivers links to each of these properties And yeah, let me tell you that if people in the working industry realize that how easy is to do this one that Could become like a very popular in in the in the industry and Well after doing all this I Can say that I am happy again and I just want to finish my presentation with a quote from a Very famous Greek philosopher Give me a for loop and a if staining and I will call the world. I came I need to do this healthy. I know that's a record sorry photo Thank you so much