Evgeniy Zaitsev Technical Artist

12Jun/16Off

Convert Vertex Normals to Soft/Hard Edges using Maya Python API

Download : vtxNormalsToSoftHardEdges.zip
Usage:

 
import vtxNormalsToSoftHardEdges; vtxNormalsToSoftHardEdges.convertNormals();


28Mar/16Off

Houdini: roundcorners python node

This python node allows user to get equivalent of mia_roundcorners in Houdini.
Download : roundcorners_example
Download : roundcorners_digitalAsset

Filed under: Houdini Continue reading
6Mar/16Off

Houdini: Toggle Views

My first Houdini Python Script. This script toggles Camera from PERSP view to SIDE view and back ( depends of camera vector ). You just need to make a Python shelf. Create new Python Tool and link my script.
Something like:

 
import view3d_toggle_views
view3d_toggle_views.toggleViews()

Download : Toggle Views

Filed under: Houdini Comments Off
11Jan/16Off

get MDagPath() from MObject()

Quick example

 
import maya.OpenMaya as OpenMaya

m_obj       = OpenMaya.MObject() # should get from any code above
m_dagPath   = OpenMaya.MDagPath()
if m_obj.hasFn( OpenMaya.MFn.kDagNode ):
    OpenMaya.MDagPath.getAPathTo( m_obj, m_dagPath )
    print( m_dagPath.fullPathName() )
17Nov/15Off

Traversing whole scene file Maya Python API

Quick example

 
import maya.OpenMaya as OpenMaya

m_iterator = OpenMaya.MItDag( OpenMaya.MItDag.kDepthFirst )
while not m_iterator.isDone():
	m_obj   = m_iterator.currentItem()
	m_objFn = OpenMaya.MFnDagNode( m_obj )
	#if ( OpenMaya.MFn.kMesh == m_obj.apiType() ):
	print( m_objFn.fullPathName() )
	m_iterator.next()  

16Nov/15Off

Get all extra attributes Maya Python API

Select the node and run:

 
m_list = getAllExtraAttributes()
print( m_list )

16Nov/15Off

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() )
    m_iterator.next()
4Nov/15Off

Maya 2016: Bake Pivot Orientation

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

Filed under: Tutorials Comments Off
26Mar/14Off

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:

29May/12Off

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 : 3D View: Toggle Views
Blender.org : 3D View: Toggle Views