19 lines
828 B
Python
19 lines
828 B
Python
class Blueprint:
|
|
def __init__(self, name):
|
|
self.name = name
|
|
self.local = True
|
|
self.marked = False # If marked as asset or with auto_export flag, always export if changed
|
|
self.scene = None # Not sure, could be usefull for tracking
|
|
|
|
self.instances = []
|
|
self.objects = []
|
|
self.nested_blueprints = []
|
|
|
|
self.collection = None # should we just sublclass ?
|
|
|
|
def __repr__(self):
|
|
return f'Name: {self.name} Local: {self.local}, Scene: {self.scene}, Instances: {self.instances}, Objects: {self.objects}, nested_blueprints: {self.nested_blueprints}'
|
|
|
|
def __str__(self):
|
|
return f'Name: "{self.name}", Local: {self.local}, Scene: {self.scene}, Instances: {self.instances}, Objects: {self.objects}, nested_blueprints: {self.nested_blueprints}'
|