Showing posts with label Bedzra. Show all posts
Showing posts with label Bedzra. Show all posts

Tuesday, June 16, 2009

02B_COSMOS BEDZRA_SURFACE





import maya.cmds as cmds
from random import*
from math import*


#REVOLVING A CURVE TO FORM A SURFACE
def revolve(numPoints,myAxis,myEndSweep):
"revolve a curve"
myPoints=[]
for i in range(numPoints):
x=uniform(0,20)
y=10
z=i*5
myPoints.append([x,y,z])
crv=cmds.curve(ep=myPoints,d=3)
cmds.revolve(crv,axis=myAxis,endSweep=myEndSweep)
revolve(10,[1,0,1],90)

Monday, May 25, 2009

02A_COSMOS_CURVES


import maya.cmds as cmds

#craeting curves through points

from math import*

numRows = 20
numColumns = 20
num3rdDimension = 1
Points=[]
for i in range(0,numRows,1):
x = (i)
for j in range(0,numColumns,1):
y = j
for k in range(-1,num3rdDimension,1):
z = sin(k*i*j)# this will craete an undulating grid
myPoint=(x,y,z)
points.append(myPoint)
cmds.curve(d=3, p=points)


Sunday, May 24, 2009

01B_COSMOS_POINTS


import maya.cmds as cmds

#creating a 3d points grid using mathematical function

from math import*

numRows = 20
numColumns = 20
num3rdDimension = 1
for i in range(0,numRows,1):
x = (i)
for j in range(0,numColumns,1):
y = j
for k in range(-1,num3rdDimension,1):
z = sin(k*i*j)# this will craete an undulating grid
myPoint=(x,y,z)
cmds.spaceLocator(p=myPoint)

Sunday, April 26, 2009

01A_BEDZRA_Pseudo-Code: washing a plate

for humans

make soapy water
put plate in
scrub
rinse plate with fresh water

for a computer

function make soapyWater:
with kitchenSink
cover wasteWater drain
turn coldWater tap to ,,on"
if kitchenSink = 25%full:
turn coldWater tap to ,,off"
lift liquid soap
with liquidSoap:
position over kitchenSink
turn -180°
add 4 drops to coldWater
turn 180°
place on counterTop
stair coldWater
execute function putPlate

function putPlate:
lift plate
position plate over kitchenSink
lay gently in kitchenSink
execute function scrubPlate

function scrubPlate:
get sponge
with Sponge:
dip in soapyWater
stroke over plateSurfaces
place on counterTop
execute function rinsePlate

function rinsePlate:
open wasteWater drain
when wasteWater = 0:
cover wasteWater drain
turn coldWater tap to ,,on"
if kitchenSink = 50%full:
turn coldWater tap ,,off"
move plate in coldWater
If plateSurfaces = clean:
place on counterTop
finish