trigger.objects.scene_data

Generic module to hold, edit and query data to/from a Maya Node’s attribute.

It inherits Python’s dict class and overrides the __setitem__ and __getitem__ methods to store and retrieve data from a Maya node’s attribute.

Attributes

LOG

Classes

SceneDictionary

Python 2 version of SceneDictionary.

Module Contents

class SceneDictionary(node, attribute='sceneData')

Bases: dict

Python 2 version of SceneDictionary.

get(key, default=None)

Get the value from the dictionary.

update(*args, **kwargs)

Update the dictionary.

validate_attribute()

Create the attribute on the node.

LOG