advanced example
This commit is contained in:
1 parent
8c0a639fba
commit
6fe57915e8
99 files changed
+1329
-56
No files matched your search
@@ -0,0 +1,21 @@
|
||||
"""UE integration test after tools/create_skeletal_fixture.py was run in Blender."""
|
||||
import unreal
|
||||
|
||||
from ue_workshop import Scene, Sequence, Renderer, camera, lighting
|
||||
from ue_workshop.paths import PROJECT
|
||||
|
||||
scene = Scene("SkeletalBlenderSmoke")
|
||||
actor = scene.skeletal_model(PROJECT / "build/SkeletalFixture/edited_fighter.blend",
|
||||
name="EditedFighterSmoke", animations={})
|
||||
child, imported = scene._skeletal_models[actor.get_path_name()]
|
||||
assert isinstance(imported.mesh, unreal.SkeletalMesh)
|
||||
assert len(imported.animations) == 1
|
||||
assert next(iter(imported.animations.values())).get_editor_property("sequence_length") > 0
|
||||
scene.primitive("Cube", name="Floor", location=(0, 0, -10), scale=(20, 20, 0.2))
|
||||
lighting.studio(scene)
|
||||
cam = camera.create(scene)
|
||||
shot = Sequence(scene, frames=24)
|
||||
shot.camera(cam)
|
||||
shot.animation(actor)
|
||||
shot.save(open_editor=False)
|
||||
renderer = Renderer(width=640, height=360, samples=1, warmup=0, mp4=False)
|
||||
Reference in new issue
Block a user