This should get your started: import maya.OpenMaya as OpenMaya
pArray = OpenMaya.MPointArray() newPoint = OpenMaya.MPoint(1.0, 2.0, 3.0) pArray.append(newPoint) getPoint = pArray[0] print getPoint.x, ' ', getPoint.y, ' ', getPoint.z #API MPoint link http://download.autodesk.com/us/maya/2010help/API/class_m_point.html #API MPointArray link http://download.autodesk.com/us/maya/2010help/API/class_m_point_array.html Ryan Trowbridge Character TD NaughtyDog Inc. www.rtrowbridge.com/blog On Sep 21, 3:46 pm, Dimitry <[email protected]> wrote: > Hey Everyone, > > I have a simple question - > how add data from text file. > > for example I have text file(what laying in the same order as maya > file) with 3dpoint List > 0,1,1 > 2,4,5 > 5,56,6.5 > 3,3.5,0 > > How it is possible to translate it to 3dPoint array in maya. > > Many thanks for every advise! > > Cheers! > Dimitry --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
