Wednesday, January 29, 2014

polyCut Vs. polyBoolOp

After several cries, and spamming of "Maya Commands" , I Finally Found It!
I kept thinking: to cut a polygon, i need 'polyCut'. I used it and kept tweaking it. But still to no avail. I remember Mr Sie Piau said something about cutting the to two polys.

After remembering so hard, I GOT IT! I remembered him saying "Boolean". I try to find out in the Maya Command and use the script. And tada, I managed to 'difference' the two polys.

That's something new i learned today.

Monday, January 20, 2014

Step by Step...

Alright, looking good!
I managed to execute the floors and the side walls. All is left is the outer walls. I have difficulties executing the duplicates of the floor. I ask help from my friends and they gave me a hint about about making a group, and have 2 different functions for the pattern and the dimensions.

Followed their advice closely, and I managed to pull it off! YES!

My Script As At 20th January:

import maya.cmds as mc
import math

def createFloor():
    myFloor = mc.polyCube( name = 'floor' )
    mc.scale( 5, 1, 10, myFloor[0] )
    mc.move( 0, 0.5, 0, myFloor[0] )
    mc.polyMoveVertex( 'floor.vtx[5]', tx=-1.0 )
    mc.polyMoveVertex( 'floor.vtx[7]', tx=-1.0 )
    mc.polyMoveVertex( 'floor.vtx[4]', tx=1.0 )
    mc.polyMoveVertex( 'floor.vtx[6]', tx=1.0 )
    return myFloor


def multiFloors (exCreateFloor):
    floorList = []
    n = 0
    nA = 0.2
    for each in range(3):
        myDup = mc.duplicate(exCreateFloor)
        print myDup
        mc.move( 0, n+5, 0, myDup[0] )
        n = n+5
        mc.polyMoveFacet( 'floor.f[2]', tz= 1+nA )
        floorList.append( myDup[0] )
    mc.delete('floor')
    return floorList

Wednesday, January 15, 2014

Achievement Unlocked : Getting Started

I am now trying to script out the 'base' of the Colosseum.
The "base"
In other words, the column of the Colosseum. I still trying to figure out how to execute it.