비활성 Blender Scene의 애니메이션 평가와 RGB 움직임 검사 수정
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""실행 검사 전용 3D 구와 두 카메라를 만든다. 제작 내용과 무관하다."""
|
||||
"""실행 검사 전용 두 애니메이션 Scene과 초기 Idle Scene을 만든다."""
|
||||
import sys
|
||||
|
||||
import bpy
|
||||
@@ -34,7 +34,10 @@ scene.camera = camera
|
||||
second = bpy.data.scenes.new("SceneB")
|
||||
second.frame_start, second.frame_end = 1, 21
|
||||
second.world = scene.world
|
||||
second.collection.objects.link(ball)
|
||||
second_ball = ball.copy()
|
||||
second_ball.data = ball.data.copy()
|
||||
second_ball.name = "BallB"
|
||||
second.collection.objects.link(second_ball)
|
||||
second.collection.objects.link(light)
|
||||
other = camera.copy()
|
||||
other.data = camera.data.copy()
|
||||
@@ -42,6 +45,13 @@ other.location = (5, -7, 1)
|
||||
other.rotation_euler = (-other.location).to_track_quat("-Z", "Y").to_euler()
|
||||
second.collection.objects.link(other)
|
||||
second.camera = other
|
||||
idle = bpy.data.scenes.new("Idle")
|
||||
idle.world = scene.world
|
||||
idle_camera = camera.copy()
|
||||
idle_camera.data = camera.data.copy()
|
||||
idle.collection.objects.link(idle_camera)
|
||||
idle.camera = idle_camera
|
||||
bpy.context.window.scene = idle
|
||||
if "--external-image" in sys.argv:
|
||||
bpy.data.images.load(sys.argv[sys.argv.index("--external-image") + 1]).use_fake_user = True
|
||||
if "--short-scene" in sys.argv:
|
||||
|
||||
Reference in New Issue
Block a user