pymel.core.system.FileInfo

Inheritance diagram of FileInfo

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.whatsNewHighlight

Next topic

pymel.core.system.FileReference

Core

Core Modules

Other Modules

This Page