Hello,
Today, Maya 2017 was released. It comes with a bunch of changes, where one
change is of particular interest to me as a Python developer; PySide has
been replaced with PySide2 (as a result of Autodesk replacing Qt4 with Qt5).
This essentially makes all PySide/PyQt scripts written for Maya v
On Tue, Jul 26, 2016 at 1:04 PM likage wrote:
> Hi all I am trying to do and learn some maya api (I have zero knowledge of
> them)
> The following code was taken from an example that I have read online and
> while testing it out, I have a few questions in mind..
>
> 1. In that test() function, as
Hi all I am trying to do and learn some maya api (I have zero knowledge of
them)
The following code was taken from an example that I have read online and
while testing it out, I have a few questions in mind..
1. In that test() function, as the world_pos variable is calling out to the
Point clas
On Tue, Jul 26, 2016 at 9:06 AM fruity wrote:
> My answer is maybe out of topic, but you could also use if or if not,
> which makes things easier to read, i think (although it's probably a
> personal point of view). I don't know if there is a big difference in
> python between != and is not, i gu
My answer is maybe out of topic, but you could also use if or if not, which
makes things easier to read, i think (although it's probably a personal
point of view). I don't know if there is a big difference in python between
!= and is not, i guess they probably call a very similar code under the
Pretty succinct explanation over here which covers it nicely. Mainly one
is just actual equality versus class/instance identity. Try not to use is
not for things where you're trying to compare direct values.
http://stackoverflow.com/questions/2209755/python-operation-vs-is-not
On Monday, Jul
I am wondering if anyone can tell me when it is best to use *is* or *is not*
over *==* or *!=*
I have this line of code:
if (rx != None) and (ry != None) and (rz != None):
and I am told that it will be better to write it this way instead:
if (rx is not None) and (ry is not None) and (rz is not N
an api alternative :D
import maya.api.OpenMaya as om
sel = om.MGlobal.getActiveSelectionList()
fn = om.MFnDependencyNode()
for i in xrange(sel.length()):
dagNode = sel.getDagPath(i)
dagNode.extendToShape()
fn.setObject(dagNode.node())
c = fn.findPlug("displayColorChannel", True