pymel.core.system.FileInfo

digraph inheritanced16c7bf4db {
rankdir=TB;
ranksep=0.15;
nodesep=0.15;
size="8.0, 12.0";
  "FileInfo" [fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,URL="#pymel.core.system.FileInfo",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8];
}

class FileInfo(*p, **k)

store and get custom data specific to this file:

>>> from pymel.all import *
>>> fileInfo['lastUser'] = env.user()

if the python structures have valid __repr__ functions, you can store them and reuse them later:

>>> fileInfo['cameras'] = str( ls( cameras=1) )
>>> camList = eval(fileInfo['cameras'])
>>> camList[0]
nt.Camera(u'frontShape')

for backward compatibility it retains it’s original syntax as well:

>>> fileInfo( 'myKey', 'myData' )
get(key, default=None)
has_key(item)
items()
keys()
pop(*args)
values()

Previous topic

pymel.core.system.warning

Next topic

pymel.core.system.FileReference

Core

Core Modules

Other Modules

This Page