The following forum message was posted by bntheman at 
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4058123:

... So here is my script.

import pydev; pydev.settrac() 
import maya.standalone as ms
ms.linitialize()

import maya.cmds as cmds

results = cmds.polyPlane(name = 'myPlane', ch=1, w=1, h=1, cuv=1)
print results[0]

so... when I run this, I get a TraceBack error....
AttributeError 'noneType' something something is unscriptable  sorry but I 
couldn't
remember the exact error, but from a python point of view, that error means
that the variable, results, was never assigned to anything. So, if I am setting
results to be ='ed to the results of polyPlane(...), and polyPlane(...) is 
suppose
to return the name of the new object, then why is results ='ed to none?

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to