|03 March 2013||#1|
Join Date: Feb 2013
Selecting a Vertex using python
Heya, i am new to python, so sorry if this seems really basic and dumb.
I have created a polyplane and I am trying to select a vertex on it. This is what i have tried:
import maya.cmds as cmds
cmds.polyPlane(name = "terrain", sw=10, sh=10, w=5, h=5)
I get this error:
# Error: AttributeError: 'list' object has no attribute 'vtx' #
Thanks for any help you can give
|03 March 2013||#2|
Infiltatring the industryportfolio
CFX / FX / TD
Join Date: May 2010
you should write : cmds.select("terrain.vtx")
If you miss the quotes, it will try to import some value from a class :
This example is from python doc
bye bye, hope it help !
|03 March 2013||#4|
Join Date: Sep 2003
Thread automatically closed
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
|Thread Closed share thread|