Thank you. 

On Tuesday, August 29, 2017 at 4:27:07 PM UTC-7, jettam wrote:
>
> I'm really new to python, and I've been doing some tutorials on youtube.
>
> This simple script makes a cube 10 times and stacks it 1 unit on top of 
> itself. I want to know how can I make it stack 2 units ontop or any 
> arbitrary number I give it?   
> Thanks in advance. 
>
>
>
> import maya.cmds as cmds
>
> cubeList = cmds.ls( 'myCube*' )
> if len(cubeList) >0:
>     cmds.delete(cubeList)
>
> result = cmds.polyCube(w=1, h=1, d=1, name='myCube#')
> transformName = result[0]
>
> for i in range (0,10):
>     instanceResult= cmds.instance(transformName, name='%s_inst#' % 
> (transformName))
>     cmds.move(x,i,z, instanceResult)
>     
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/06b84bdc-167e-4414-be7a-17049650968b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to