Creating A unique Spiral Stairs With Decorations Refrence
Part 1 Understanding the Script
Part 2 Experimenting with the Script
Part 3 Creating the DNA Structure
Part 4 Increase the stair look
Part 5 Vortex
I noticed that my script is very messy so i decided to group them to a same list
eg:
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])
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])
to
#Dna Structure
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])
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) )
DNAList.append( myDNAOrb[0])
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) )
DNAList.append( myDNAOrbB[0])
And it works

No comments:
Post a Comment