def get_snapshot_code(my, node_name, snapshot_type): '''This function gets the snapshot_code that was used to load this asset''' node_data = NodeData(node_name) snapshot_code = node_data.get_attr("%s_snapshot" % snapshot_type, "code") return snapshot_code
def get_snapshot_attr(self, node_name, snapshot_type, attr): '''This function gets the snapshot_code that was used to load this asset''' node_data = NodeData(node_name) snapshot_code = node_data.get_attr("%s_snapshot" % snapshot_type, attr) return snapshot_code
def get_snapshot_attr(self, node_name, snapshot_type, attr): '''This function gets the attr of the snapshot that was used to load this asset''' node_data = NodeData(node_name) snapshot_attr = node_data.get_attr("%s_snapshot" % snapshot_type, attr) return snapshot_attr
def get_snapshot_code(my, node_name, snapshot_type): """This function gets the snapshot_code that was used to load this asset""" node_data = NodeData(node_name) snapshot_code = node_data.get_attr("%s_snapshot" % snapshot_type, "code") return snapshot_code