from maya.cmds import polyCube,xform from math import cos,sin def tree(x,y,z,a,b,l,w,r,s,it,lvl=0): if(lvl