From 1e92a733f2bc5c73a2c68de2328e1d0447fb7b54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=94=84=EB=A6=AC=EB=A7=88?= Date: Sat, 4 Jan 2025 17:04:43 -0300 Subject: [PATCH] tests --- apps/spiral/temp/blender/build.py | 10 ++++++---- scripts/core.ps1 | 7 ++++++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/apps/spiral/temp/blender/build.py b/apps/spiral/temp/blender/build.py index 6c9266b5..6e727ddf 100644 --- a/apps/spiral/temp/blender/build.py +++ b/apps/spiral/temp/blender/build.py @@ -1,3 +1,4 @@ +import os import bpy # 1) Clear default scene @@ -40,13 +41,14 @@ # Create a sun light bpy.ops.object.light_add(type='SUN', location=(10, 10, 10)) light_obj = bpy.context.active_object -light_obj.data.energy = 3 +light_obj.data.energy = 6 +light_obj.data.use_shadow = False # 5) Set rendering options (Cycles, resolution) bpy.context.scene.render.engine = 'CYCLES' -bpy.context.scene.render.resolution_x = 1024 -bpy.context.scene.render.resolution_y = 1024 +bpy.context.scene.render.resolution_x = 2048 +bpy.context.scene.render.resolution_y = 2048 # Render and save -bpy.context.scene.render.filepath = f"spiral_blender.png" +bpy.context.scene.render.filepath = os.path.join(".", f"spiral_blender.png") bpy.ops.render.render(write_still=True) diff --git a/scripts/core.ps1 b/scripts/core.ps1 index d8b7e678..aaf30b47 100644 --- a/scripts/core.ps1 +++ b/scripts/core.ps1 @@ -152,13 +152,18 @@ function EnsureSymbolicLink([string] $Path, [string] $Target) { } if ($Target.StartsWith(".") -or $Target.StartsWith("/")) { $Target = [IO.Path]::GetFullPath((Join-Path $Location $Target)) + + $LinkTarget = (Get-Item $Target).Target + if ($LinkTarget) { + $Target = $LinkTarget + } } $Parent = Split-Path $Path if (-Not (Test-Path $Parent)) { Write-Output "Creating parent directory: $Parent" - New-Item $Parent -ItemType Directory + New-Item $Parent -ItemType Directory | Out-Null } if (Test-Path $Path) {