pymel.core.system.FileInfo¶
digraph inheritanced16c7bf4db { rankdir=TB; ranksep=0.15; nodesep=0.15; size="8.0, 12.0"; "Container" [shape=box,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=8,style="setlinewidth(0.5)",height=0.25]; "FileInfo" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="#pymel.core.system.FileInfo",style="setlinewidth(0.5)",tooltip="store and get custom data specific to this file:",height=0.25,shape=box,fontsize=8]; "MutableMapping" -> "FileInfo" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Iterable" [shape=box,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=8,style="setlinewidth(0.5)",height=0.25]; "Mapping" [shape=box,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=8,style="setlinewidth(0.5)",height=0.25]; "Sized" -> "Mapping" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Iterable" -> "Mapping" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Container" -> "Mapping" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MutableMapping" [shape=box,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=8,style="setlinewidth(0.5)",height=0.25]; "Mapping" -> "MutableMapping" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Sized" [shape=box,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=8,style="setlinewidth(0.5)",height=0.25]; }
- 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' )
Updated to have a fully functional dictiony interface.
- _the_instance = <pymel.core.system.FileInfo object at 0x000002755D65FDD8>¶
- has_key(key)¶
- items()¶
- keys()¶