nodedge.scene_clipboard

Scene clipboard module containing SceneClipboard.

class nodedge.scene_clipboard.SceneClipboard(scene: Scene)

Bases: object

SceneClipboard class

The scene clipboard class contains the code for the serialization/deserialization from/to the clipboard.

serializeSelected(delete=False)

Serializes selected items in the scene into OrderedDict.

Parameters

delete (bool) – True to delete selected items after serialization. It is useful for cut operations.

Returns

serialized data of current selection in Nodedge’s Scene

deserialize(data, *args, **kwargs)

Deserializes data from the clipboard.

Parameters

data (dict) – dict data for deserialization to the Nodedge.node_scene.Scene