Naming and References
Use
#to manually set the ID of an elementUse
.to add CSS classes to elementsNaming Examples:
#graphsets the element id tograph(e.g.<div id="graph"></div>).list-itemadds the classlist-itemto the host element (e.g.<div class="list-item"></div>)
Script Example with IDs:
player.loadScene('SCENE_ID');scene.get('ELEMENT_ID');
Concept
Often times an action/script requires a reference to another element or scene. In this case the target element/scene needs a unique ID or class name (CSS). Short version: Prefix the target element's layers name with # to set an ID or . to set a class.
You can use multiple classes per element.
Layer/artboard names not starting with # or . are just for readability and will have no effect on preview/export code.