"""Dwie postacie Mixamo: osobne szkielety, klipy i pozycje na jednej scenie.""" from ue_workshop import Scene, Sequence, Renderer, camera, lighting, materials from ue_workshop.characters import FIGHTER_MODEL, CREATURE_MODEL REIMPORT = False # True: ponowny import modelow i klipow; False: istniejace assety UE scene = Scene("MixamoCharacters") fighter = scene.skeletal_model( FIGHTER_MODEL, name="Fighter", location=(-160, 0, 0), rotation=(0, 0, 180), reimport=REIMPORT) creature = scene.skeletal_model( CREATURE_MODEL, name="Creature", location=(160, 0, 0), rotation=(0, 0, 180), reimport=REIMPORT) floor = materials.color("Floor", (0.07, 0.08, 0.11)) scene.primitive("Cube", name="Floor", location=(0, 0, -10), scale=(20, 20, 0.2), material=floor) lighting.studio(scene) cam = camera.create(scene, location=(500, -850, 350), target=(0, 0, 100), fov=50) shot = Sequence(scene, fps=24, frames=120) shot.camera(cam) shot.animation(fighter, "great_sword_attack", start=0, end=60) shot.animation(fighter, "great_sword_idle", start=60, end=120) shot.animation(creature, "mutant_idle", start=0, end=60) shot.animation(creature, "mutant_swiping", start=60, end=120) shot.save() renderer = Renderer() # Po obejrzeniu w Sequencerze: renderer.render(shot)