

The GUID is guaranteed unique within the current document, but other documents may contain the same GUID value. Cut-Paste will result in a new GUID, however. Returns a unique identifier for this node that stays the same when the file is closed & reopened, or if the node is moved to a different part of the document. placeInParentCoordinates(registrationPoint, parentPoint) Print out types of all child nodes (if any) Objects are also accessible on the scenegraph module for convenience.Ĭonsole.log( "The selected node is a: " + )

Traversing the entire document tree using the documentRoot argument that is passed to your plugin command. Typically, you access scenegraph nodes via the selection argument that is passed to your plugin command, or by You can modify properties on any scenenodes within the current edit context, and add leaf nodes to the currentĮdit context, but you cannot make structural changes directly to the scenegraph tree. The root of the scenegraph contains all Artboards that exist in the document, as well as all pasteboard content (nodes that are notĬontained by any artboard). Some scenenodes may contain children (e.g., a Group or Artboard), while others are leaf nodes (e.g., a Rectangle or Text node). It closely matches the hierarchy seen in the Layers panel The scenegraph is a node tree which represents the structure of the XD document.
