Wednesday, May 20, 2015

Part 2 Experimenting with the Script

Contents
Creating A unique Spiral Stairs With Decorations Refrence
Part 1 Understanding the Script


So i started playing around with the Values of the scripts since i already understand the script now is just to calculate the distance of the objects that i am gonna create by modifying the values of the X Axis in the mc.move (10, each*10, 0, object[0])

I wanted to create a DNA Structure so i started by placing the Spheres at each end of the Stair
mySphereListA =[]
for each in range(MyNo):
    mySphere = mc.polySphere(name="mySphere")
    mc.move (15, (each-1) , 0 , mySphere[0] )
    mc.rotate (0, (each*10) , 0 , mySphere[0], pivot =(0,0,0) )
    mc.scale (2,2,2, mySphere[0])
    mySphereListA.append(mySphere[0])   
   
mySphereListB =[]
for each in range(MyNo):
    mySphereB = mc.polySphere(name="mySphereB")
    mc.move (5, (each-1) , 0 , mySphereB[0] )
    mc.rotate (0, (each*10) , 0 , mySphereB[0], pivot =(0,0,0) )
    mySphereListB.append(mySphereB[0])

Result
so I continued to add on the script
to create the cage like appearence of the Stairs
myCubeList2 =[]
for each in range(MyNo):
    mybox = mc.polyCube(name="mybox")
    mc.move (5, (each-1) , 0 , mybox[0] )
    mc.rotate (0, (each*10) , 0 , mybox[0], pivot =(0,0,0) )
    mc.scale (0.5,10,0.5, mybox[0])
    myCubeList2.append(mybox[0])

myCubeList3 =[]
for each in range(MyNo):
    mybox2 = mc.polyCube(name="mybox2")
    mc.move (15, (each-1) , 0 , mybox2[0] )
    mc.rotate (0, (each*10) , 0 , mybox2[0], pivot =(0,0,0) )
    mc.scale (0.5,30,0.5, mybox2[0])
    myCubeList3.append(mybox2[0])

Result


Part 3 Creating the DNA Structure 

No comments:

Post a Comment