Wednesday, 12 February 2014

Python Scripting - Creating Archs(Part 1) and Railings

After creating the columns, it is time to create archs. I have made a new function for the archs. Making the archs was difficult and tedious. I had many problems with creating the archs such as the circles were not placed in the right positions that I want. To make the archs, I have to create circles around the structure and cut them into the cylinder. In this script, the circles are obviously wrongly placed.

Rotation Scripting FAIL

Creating the Railings

I have also made railings for the Leaning Tower of Pisa. To do so, I have created another function. The first thing was to make the circular shapes for the railing bar. I have used a pipe to create the railings. In order to make the railings look circular, I have added poly.smooth below. The main reason why I used poly.smooth is there is no subdivisions to make the pipe circular. For the poles, I made them into a circular formation using the same math equations that were used before. As usual, I have made lists and append for both Railingbars and Poles. After which, I just grouped(MC.group) them together and duplicated(MC.duplicate) once more to produce another railing.

No comments:

Post a Comment