Re: Offtopic: Python in Maya

2012-12-05 Thread Christian Gotzinger
Thank you very much! This will get us started. On Wed, Dec 5, 2012 at 11:10 AM, Daniel Harjanto wrote: > in standard python: > > import maya.cmds as cmds > > for i in range(5): > > MySphere = cmds.polySphere() > > cmds.setAttr("%s.translateY" % MySphere[0], i) > > in pyMel: > > impor

Re: Offtopic: Python in Maya

2012-12-05 Thread Daniel Harjanto
in standard python: import maya.cmds as cmds for i in range(5): MySphere = cmds.polySphere() cmds.setAttr("%s.translateY" % MySphere[0], i) in pyMel: import pymel.core as pm; for i in range(5): MySphere = pm.PyNode(pm.polySphere()[0]) MySphere.setAttr('translateY',

Re: Offtopic: Python in Maya

2012-12-05 Thread Christian Gotzinger
Thank you for the link Eric, I'll check it out. We're not trying to do anything crazy, so in case someone here has been to the dark side and knows the answer please let me know :-) Cheers, Christian On Wed, Dec 5, 2012 at 10:32 AM, Eric Thivierge wrote: > Maybe this list may be more helpful:

Re: Offtopic: Python in Maya

2012-12-05 Thread Eric Thivierge
Maybe this list may be more helpful: http://groups.google.com/group/python_inside_maya Eric Thivierge http://www.ethivierge.com On Wed, Dec 5, 2012 at 8:21 PM, Christian Gotzinger wrote: > Hi list, > > I'm rather new to Python, and while I've got ma

Offtopic: Python in Maya

2012-12-05 Thread Christian Gotzinger
Hi list, I'm rather new to Python, and while I've got many things worked out nicely in SI already, we are trying to implement some of this stuff in Maya as well. Sorry for this simple question, but could somebody tell me the Maya equivalent for this? for i in range(5): MySphere = Application.