Skip to content

Scratch Playground

Play and Learn

Category Archives: Programare Python in Maya

Programare Python Maya Planar Projection

import maya.cmds as cmdscmds.polySphere()for i in range(100):    cmds.select(‘pSphere1.f[%d]’%i)    cmds.polyPlanarProjection(‘pSphere1.f[%d]’%i,md=’b’)     cmds.hyperShade(assign=’blinn1′)

Posted bydani@media10.euMarch 15, 2020May 24, 2020Posted inProgramare Python in Maya

Programare Python Lectia 7

import maya.cmds as cmdscmds.polySphere()for i in range(1,500,2):    cube1=cmds.polyCube(w=.5,h=.5,d=.5)    col1=i%3+1    cmds.hyperShade(assign=’blinn%d’%col1)    pointpos=cmds.pointPosition(‘pSphere1.vtx[%d]’%i)    cmds.move(pointpos[0],pointpos[1],pointpos[2])    cmds.setKeyframe(cube1,attribute=’scale’,t=[’10sec’],v=2)

Posted bydani@media10.euFebruary 11, 2020March 26, 2020Posted inProgramare Python in Maya

Mos Craciun

Posted bydani@media10.euDecember 14, 2019February 11, 2020Posted inProgramare Python in Maya

Bradul de Craciun

Posted bydani@media10.euDecember 8, 2019February 11, 2020Posted inProgramare Python in Maya

Steaua pentru Pomul de Craciun

cmds.polyCylinder(h=.1,sx=10) for i in range(20,30,2): cmds.select(‘pCylinder1.e[%d]’%i) cmds.scale(3,1,3) Multe Stelutze import maya.cmds as cmds import random for j in range(0,10): cmds.polyCylinder(h=.1,sx=10) cmds.move(random.randint(0,30),0,random.randint(0,30)) for i in range(20,30,2): cmds.select(‘pCylinder%d.e[%d]’%(j+1,i)) cmds.scale(3,1,3)

Posted bydani@media10.euDecember 5, 2019February 11, 2020Posted inProgramare Python in Maya

Globuri pentru Pomul de Craciun

import maya.cmds as cmds import random for i in range(50): j=i%4+1 cmds.polySphere() cmds.move (random.randint(0,10),random.randint(0,30),random.randint(0,10)) cmds.hyperShade(assign=’blinn%d’%j)

Posted bydani@media10.euDecember 5, 2019February 11, 2020Posted inProgramare Python in Maya

Obiecte Multicolore

import maya.cmds as cmdscmds.polySphere(sx=16,sy=16)for i in range(300): j=i%4+1 cmds.select(‘pSphere1.f[%d]’%i) cmds.hyperShade(assign=’blinn%d’%j) import maya.cmds as cmds cmds.polySphere(sx=40,sy=30) for i in range(1200): j=i/10%4+1 cmds.select(‘pSphere1.f[%d]’%i) cmds.hyperShade(assign=’blinn%d’%j)

Posted bydani@media10.euNovember 25, 2019February 11, 2020Posted inProgramare Python in Maya

Programare Python Lectia 4 Partea 2

Posted bydani@media10.euNovember 7, 2019February 11, 2020Posted inProgramare Python in Maya

Programare Python lectia 4 partea 1

Posted bydani@media10.euNovember 4, 2019November 4, 2019Posted inProgramare Python in Maya

Programare Python Lectia 3

Posted bydani@media10.euOctober 14, 2019October 24, 2019Posted inProgramare Python in Maya

Posts navigation

Newer posts 1 2 3 Older posts
Scratch Playground, Proudly powered by WordPress.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok