advanced example

This commit is contained in:
Vysyr committed 2026-10-31 20:16:32 +01:00
1 parent 8c0a639fba
commit 6fe57915e8
99 files changed
+1329 -56

No files matched your search

+4
View File
@@ -22,6 +22,10 @@ assert len(second["shot"].asset.get_bindings()) == 2
assert len(second["shot"].asset.find_tracks_by_type(unreal.MovieSceneCameraCutTrack)) == 1
short = Sequence(second["scene"], "Smoke", fps=24, frames=2)
short.camera(second["cam"])
if second["character"].get_path_name() in second["scene"]._skeletal_models:
clip = second["ANIMATION"] if second["MODEL"] in ("fighter", "creature") else (
"custom" if second["ANIMATION_FILE"] else None)
short.animation(second["character"], clip)
short.transform_key(second["character"], 0, rotation=(0, 0, 0))
short.transform_key(second["character"], 1, rotation=(0, 0, 30))
render.start(short, mp4=True)