Monday, May 25, 2015

Part 3 Creating the DNA Structure


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

After experimenting with the script I wanted to start to create the DNA Structure in the middle of the steps so this what I did

DNAList =[]
for each in range(MyDnaNo):
    myDNA = mc.polyCube(name="myDNA")
    mc.move (0, ((each*2)-1) , 0 , myDNA[0] )
    mc.rotate (0, (each*15) , 0 , myDNA[0] )
    mc.scale (10,0.5,0.5, myDNA[0])
    DNAList.append(myDNA[0])
this was one of the problem faced in the script. In the above script I removed the pivot of the roatation value

DNABallA =[]
for each in range(MyDnaNo):
    myDNAOrb = mc.polySphere(name="myDNAOrb")
    mc.move (5, ((each*2)-1) , 0 , myDNAOrb[0] )
    mc.rotate (0, (each*15) , 0 , myDNAOrb[0], pivot =(0,0,0) )
    DNABallA.append( myDNAOrb[0])   
   
DNABallB =[]
for each in range(MyDnaNo):
    myDNAOrbB = mc.polySphere(name="myDNAOrbB")
    mc.move (-5, ((each*2)-1) , 0 , myDNAOrbB[0] )
    mc.rotate (0, (each*15) , 0 , myDNAOrbB[0], pivot =(0,0,0) )
    DNABallB.append( myDNAOrbB[0])

result

No comments:

Post a Comment