In mathematics, graph theory is the study of graphs, which are mathematical structures used to model pairwise relations between objects. Any diagram of points and line segments connecting pairs of points is called a graph. The points are usually called vertices or nodes, and the line segments are called edges. More than one edge is …
Author Archives: admin
Maya Python Face Extrusion
Example 1 import maya.cmds as cmds#create a polygonal sphere cmds.polySphere()#delete faces , from 160 to the end cmds.delete(‘pSphere1.f[160:]’)#extrude all remaining faces #extrusion distance 0.1# faces are pulled independently cmds.polyExtrudeFacet(‘pSphere1.f[:]’,kft=False, ltz=.1) Example 2 import maya.cmds as cmdscmds.polySphere() # extrude one face 20 times # for every extrusion we perform a rotation and a translation for i …
Minecraft: Math and Coding
Maya Python polyPlanarProjection
Script Example 1 gb #create a new blinn shader with a bitmap image #Create a polygonal sphere #select 100 faces and apply the planar projection to them #apply the shader to all these faces import maya.cmds as cmdscmds.polySphere()for i in range(100): cmds.select(‘pSphere1.f[%d]’%i)
Maya Python IF statement: Coloring Faces
import maya.cmds as cmdscmds.polyTorus() #create a polygonal torusfacesnr=cmds.polyEvaluate(f=True) #find out the number of torus faces for i in range(facesnr): box1=cmds.xform(‘pTorus1.f[%d]’%i,q=1,bb=1) if box1[1]>.2: cmds.select(‘pTorus1.f[%d]’%i) cmds.hyperShade(assign=’blinn1’)
Maya Python Animation setKeyframe
In this example we’ll be looking at how to create keyframes with code. The script will animate a lot of small cubes placed on a sphere. We need 3 blinn shaders. First we create a sphere with default parameters.Then we create 250 small cubes. We use variable col1 for changing the cube color. pointPosition helps …
ANIMAL ISLAND Aila Sit & Play Virtual Early Preschool Learning System for Toddlers
Animal Island Learning Adventure (AILA) Original Series for toddlers (12+ months) – high-quality educational content developed by educators and innovators for early learning when it matters the most. It’s hands-free, worry-free, ad-free and subscription-free with automatic updates. There are three play modes with curated playlists: broadcast for exposure, session for learning and lullaby for sleepy …