"the nodetype file is not a file node class ... it is the mel file command"
i'm not sure i follow. are you getting the function maya.cmds.file somewhere instead of the File class? just did a quick test on my end and i'm getting what i expect: from pymel import * newFile(f=1) # Result: untitled # shadingNode( 'file', asTexture=1) # Result: file1 # ls(type='file') # Result: [File(u'file1'), File(u'file2')] # f = ls(type='file')[0] f.type() # Result: file # f.listConnections() # Result: [DefaultTextureList(u'defaultTextureList1')] # repr(f) # Result: File(u'file1') # -chad On Wed, Apr 29, 2009 at 11:42 AM, sberger <[email protected]> wrote: > > Hi, I am listing all the file nodes with pymel > > import pymel as pm > pm.ls(type='file') > > the result is the list of all file nodes in my scene ... the pymel > object returned is the nodeType file... but the nodetype file is not a > file node class ... it is the mel file command ... the one used to > query file info... > > this is not really useful :) > > > > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
