只是作简单的了解。
1区别
(1)Python scripts:可以在Maya的script editor 执行。用于扩展maya.cmd模块。
The import statement below is typically found at the head of Maya Python scripts:
import maya.cmds as cmds
(2) Python plugins:
Maya Python plug-ins can be used to define your own commands, nodes, shaders, constraints, file translators, and deformers to name but a few customizable elements.
import maya.OpenMaya as OpenMaya # Common classes
import maya.OpenMayaMPx as OpenMayaMPx # Classes from which to inherit
import maya.OpenMayaAnim as OpenMayaAnim # Animation classes
import maya.OpenMayaFX as OpenMayaFX # Effect classes (hair, particles, fluids)
import maya.OpenMayaRender as OpenMayaRender # Rendering classes
import maya.OpenMayaUI as OpenMayaUI # User interface classes
import maya.OpenMayaCloth as OpenMayaCloth # Cloth classes