Evgeniy Zaitsev Technical Artist


Get all extra attributes Maya Python API

Select the node and run:

m_list = getAllExtraAttributes()
print( m_list )


Get all attributes from the kFileTexture node Maya Python API

import maya.OpenMaya as OpenMaya

m_iterator = OpenMaya.MItDependencyNodes( OpenMaya.MFn.kFileTexture )
m_nodeFn   = OpenMaya.MFnDependencyNode()

while not m_iterator.isDone():
    m_object = m_iterator.thisNode()
    m_nodeFn.setObject( m_object )
    print( "  --- {0} --- ".format( m_nodeFn.name()) )
    for i in range( m_nodeFn.attributeCount() ):
        m_atrr   = m_nodeFn.attribute(i)
        m_fnAttr = OpenMaya.MFnAttribute( m_atrr )
        print( m_fnAttr.name() )

Maya 2016: Bake Pivot Orientation

Quick tutorial, how you can bake custom pivot orientation in Autodesk Maya 2016

Filed under: Tutorials Comments Off

3dsMax: Separate Mesh By Smoothing Groups

Download : separateBySmoothingGroups.zip
Unzip script into: C:\Users\ezaitsev\AppData\Local\Autodesk\3dsMax\2014 - 64bit\ENU\usermacros\

How-to install and use:


Blender: 3D View: Toggle Views

My first Blender Script ( Add-on ). I decided to make something useful, I am using same script in Maya ( I would say same idea ). This add-on toggles Camera from PERSP view to SIDE view and back ( depends of camera vector ). You just need press Alt + Q hotkey. In case if you are already using this hotkey, you will need to specify something else in preferences ( you just need to assign operator view3d.toggle_views_op to any hotkey).
Download : 2.79 3D View: Toggle Views 2.80 3D View: Toggle Views
Blender.org : 2.79 3D View: Toggle Views 2.80 3D View: Toggle Views


UDK: Triplanar UV mapping shader

Glad to share something new. Maybe it will be useful for someone. Image below shows how it works.

UDK-2011-02 package: Triplanar.upk
This package contains two realizations. One based on lerps, another - just simple multiplication with weights


Maya: Extra Attributes using Maya API classes

Dealt Maya API. Here I decided to post some example functions. The basic idea was using Maya API Python classes realize workflow with extra attributes at native Maya node. Suppose you want to make a script that stores some data in one native Maya node (in the script node, for example), and if user do not have your script, nothing terrible will happen, node modified by you will work without any troubles. Sorry for my English.

You should get something like this:


Maya: isMeshHasSkinCluster()

I want to share useful function created by me, I use it in my scripts.
You can modify it in such a way that it will return a pointer to skinCluster for example. I also wrote a some comments. Hope it will be useful for someone.