diff --git a/main.py b/main.py index 93d8f1c..c418fa5 100644 --- a/main.py +++ b/main.py @@ -18,6 +18,7 @@ def automate_function( automate_context: AutomationContext ) -> None: + # Get info from Automate client = automate_context.speckle_client PROJECT_ID = automate_context.automation_run_data.project_id VERSION_ID = automate_context.automation_run_data.version_id diff --git a/speckle_import.py b/speckle_import.py index 2524f2b..5809a27 100644 --- a/speckle_import.py +++ b/speckle_import.py @@ -55,7 +55,7 @@ def set_filename(fileName): light = bpy.data.lights.new("myLight", 'POINT') light.color = Color((1, 0.34, 0.1)) -light.energy = 100 #watts +light.energy = 300 #watts print(f"Found {len(rooms)} rooms") for room in rooms: diff --git a/tests/test_function.py b/tests/test_function.py index 3563de0..efd6b31 100644 --- a/tests/test_function.py +++ b/tests/test_function.py @@ -18,6 +18,7 @@ from main import automate_function + def crypto_random_string(length: int) -> str: """Generate a semi crypto random string of a given length.""" alphabet = string.ascii_letters + string.digits @@ -123,13 +124,13 @@ def automation_run_data( automation_revision_id = "myFunctionVer" # crypto_random_string(10) register_new_automation( - project_id, - model_id, - test_client, - automation_id, - automation_name, - automation_revision_id, - ) + project_id, + model_id, + test_client, + automation_id, + automation_name, + automation_revision_id, + ) automation_run_id = crypto_random_string(10) function_id = crypto_random_string(10) @@ -144,8 +145,8 @@ def automation_run_data( automation_revision_id=automation_revision_id, automation_run_id=automation_run_id, function_id=function_id, - function_name="", - function_release= function_revision + function_name="blender-automate", + function_logo="" )