import subprocess anim_dict = { "4EC690": "SLOW_LEDGE_GRAB", "4ED1D0": "FALL_OVER_BACKWARDS", "4ED1E8": "BACKWARD_AIR_KB", "4EECAC": "DYING_ON_BACK", "4EFED4": "BACKFLIP", "4F08C0": "CLIMB_UP_POLE", "4F2078": "GRAB_POLE_SHORT", "4F2508": "GRAB_POLE_SWING_PART1", "4F2520": "GRAB_POLE_SWING_PART2", "4F38F0": "HANDSTAND_IDLE", "4F43F4": "HANDSTAND_JUMP", "4F440C": "START_HANDSTAND", "4F2BF0": "RETURN_FROM_HANDSTAND", "4F4A64": "IDLE_ON_POLE", "4F4E7C": "A_POSE", "4F4FE0": "SKID_ON_GROUND", "4F4FF8": "STOP_SKID", "4F56EC": "CROUCH_FROM_FAST_LONGJUMP", "4F5C98": "CROUCH_FROM_SLOW_LONGJUMP", "4F62D4": "FAST_LONGJUMP", "4F6A78": "SLOW_LONGJUMP", "4F6FDC": "AIRBORNE_ON_STOMACH", "4F7494": "WALK_WITH_LIGHT_OBJ", "4F870C": "RUN_WITH_LIGHT_OBJ", "4F93A0": "SLOW_WALK_WITH_LIGHT_OBJ", "4FA618": "SHIVERING_WARMING_HAND", "4FBC18": "SHIVERING_RETURN_TO_IDLE", "4FC1A8": "SHIVERING", "4FCDE8": "CLIMB_DOWN_LEDGE", "4FD208": "CREDITS_WAVING", "4FD880": "CREDITS_LOOK_UP", "4FDF90": "CREDITS_RETURN_FROM_LOOK_UP", "4FE3F4": "CREDITS_RAISE_HAND", "5000DC": "CREDITS_LOWER_HAND", "500C24": "CREDITS_TAKE_OFF_CAP", "501410": "CREDITS_START_WALK_LOOK_UP", "50353C": "CREDITS_LOOK_BACK_THEN_RUN", "505AF0": "FINAL_BOWSER_RAISE_HAND_SPIN", "507B58": "FINAL_BOWSER_WING_CAP_TAKE_OFF", "509924": "CREDITS_PEACE_SIGN", "50BD4C": "STAND_UP_FROM_LAVA_BOOST", "50C254": "FIRE_LAVA_BURN", "50C5B0": "WING_CAP_FLY", "50CBA8": "HANG_ON_OWL", "50D2EC": "LAND_ON_STOMACH", "50D304": "FORWARD_AIR_KB", "50EA0C": "DYING_ON_STOMACH", "50F6F4": "SUFFOCATING", "511504": "COUGHING", "512B4C": "THROW_CATCH_KEY", "515604": "DYING_FALL_OVER", "5175EC": "IDLE_ON_LEDGE", "518218": "FAST_LEDGE_GRAB", "518840": "HANG_ON_CEILING", "5197CC": "PUT_CAP_ON", "51A754": "TAKE_CAP_OFF_THEN_ON", "51C314": "QUICKLY_PUT_CAP_ON", "51C774": "HEAD_STUCK_IN_GROUND", "51F90C": "GROUND_POUND_LANDING", "51FB98": "TRIPLE_JUMP_GROUND_POUND", "520160": "START_GROUND_POUND", "520178": "GROUND_POUND", "520594": "BOTTOM_STUCK_IN_GROUND", "52338C": "IDLE_WITH_LIGHT_OBJ", "5240B8": "JUMP_LAND_WITH_LIGHT_OBJ", "524614": "JUMP_WITH_LIGHT_OBJ", "524940": "FALL_LAND_WITH_LIGHT_OBJ", "524E10": "FALL_WITH_LIGHT_OBJ", "524F78": "FALL_FROM_SLIDING_WITH_LIGHT_OBJ", "525318": "SLIDING_ON_BOTTOM_WITH_LIGHT_OBJ", "525330": "STAND_UP_FROM_SLIDING_WITH_LIGHT_OBJ", "5258EC": "RIDING_SHELL", "525D48": "WALKING", "527248": "FORWARD_FLIP", "527870": "JUMP_RIDING_SHELL", "527BEC": "LAND_FROM_DOUBLE_JUMP", "52826C": "DOUBLE_JUMP_FALL", "528620": "SINGLE_JUMP", "528638": "LAND_FROM_SINGLE_JUMP", "5290E4": "AIR_KICK", "529824": "DOUBLE_JUMP_RISE", "529ADC": "START_FORWARD_SPINNING", "529FDC": "THROW_LIGHT_OBJECT", "52A460": "FALL_FROM_SLIDE_KICK", "52AD28": "BEND_KNESS_RIDING_SHELL", "52B360": "LEGS_STUCK_IN_GROUND", "52E078": "GENERAL_FALL", "52E090": "GENERAL_LAND", "52E7BC": "BEING_GRABBED", "52ED0C": "GRAB_HEAVY_OBJECT", "52FA0C": "SLOW_LAND_FROM_DIVE", "5307F0": "FLY_FROM_CANNON", "530BD4": "MOVE_ON_WIRE_NET_RIGHT", "5311D4": "MOVE_ON_WIRE_NET_LEFT", "531760": "MISSING_CAP", "5347C4": "PULL_DOOR_WALK_IN", "535C9C": "PUSH_DOOR_WALK_IN", "536D64": "UNLOCK_DOOR", "539FEC": "START_REACH_POCKET", "53A3E8": "REACH_POCKET", "53AB58": "STOP_REACH_POCKET", "53B14C": "GROUND_THROW", "53B904": "GROUND_KICK", "53C1B4": "FIRST_PUNCH", "53C44C": "SECOND_PUNCH", "53C6B4": "FIRST_PUNCH_FAST", "53CAC4": "SECOND_PUNCH_FAST", "53CFFC": "PICK_UP_LIGHT_OBJ", "53D4BC": "PUSHING", "53DAD4": "START_RIDING_SHELL", "53E0F0": "PLACE_LIGHT_OBJ", "53E674": "FORWARD_SPINNING", "53E68C": "BACKWARD_SPINNING", "53E804": "BREAKDANCE", "53F138": "RUNNING", "53F150": "RUNNING_UNUSED", "54035C": "SOFT_BACK_KB", "540BA4": "SOFT_FRONT_KB", "54141C": "DYING_IN_QUICKSAND", "542758": "IDLE_IN_QUICKSAND", "54320C": "MOVE_IN_QUICKSAND", "545BF8": "ELECTROCUTION", "546B40": "SHOCKED", "546DE8": "BACKWARD_KB", "547834": "FORWARD_KB", "548244": "IDLE_HEAVY_OBJ", "543B40": "STAND_AGAINST_WALL", "549A84": "SIDESTEP_LEFT", "54A9C0": "SIDESTEP_RIGHT", "54BB6C": "START_SLEEP_IDLE", "54CD54": "START_SLEEP_SCRATCH", "54E4F4": "START_SLEEP_YAWN", "54F888": "START_SLEEP_SITTING", "550C30": "SLEEP_IDLE", "550E88": "SLEEP_START_LYING", "551AF4": "SLEEP_LYING", "552224": "DIVE", "55223C": "SLIDE_DIVE", "55283C": "GROUND_BONK", "5534F4": "STOP_SLIDE_LIGHT_OBJ", "5541A4": "SLIDE_KICK", "554540": "CROUCH_FROM_SLIDE_KICK", "554A94": "SLIDE_MOTIONLESS", "554AAC": "STOP_SLIDE", "555214": "FALL_FROM_SLIDE", "55571C": "SLIDE", "55593C": "TIPTOE", "557030": "TWIRL_LAND", "5573A0": "TWIRL", "557504": "START_TWIRL", "557730": "STOP_CROUCHING", "557AEC": "START_CROUCHING", "557DA0": "CROUCHING", "55897C": "CRAWLING", "55A5F8": "STOP_CRAWLING", "55A990": "START_CRAWLING", "55AD1C": "SUMMON_STAR", "55C144": "RETURN_STAR_APPROACH_DOOR", "55C9F0": "BACKWARDS_WATER_KB", "55DAAC": "SWIM_WITH_OBJ_PART1", "55DEC8": "SWIM_WITH_OBJ_PART2", "55E164": "FLUTTERKICK_WITH_OBJ", "55E610": "WATER_ACTION_END_WITH_OBJ", "55ECCC": "STOP_GRAB_OBJ_WATER", "55F800": "WATER_IDLE_WITH_OBJ", "55FF88": "DROWNING_PART1", "5614B8": "DROWNING_PART2", "5627F4": "WATER_DYING", "5634FC": "WATER_FORWARD_KB", "564558": "FALL_FROM_WATER", "564D2C": "SWIM_PART1", "56520C": "SWIM_PART2", "565610": "FLUTTERKICK", "565DD0": "WATER_ACTION_END", "566628": "WATER_PICK_UP_OBJ", "566AF8": "WATER_GRAB_OBJ_PART2", "56747C": "WATER_GRAB_OBJ_PART1", "567748": "WATER_THROW_OBJ", "5681D0": "WATER_IDLE", "568A04": "WATER_STAR_DANCE", "56A478": "RETURN_FROM_WATER_STAR_DANCE", "56ACC4": "GRAB_BOWSER", "56ACDC": "SWINGING_BOWSER", "56B358": "RELEASE_BOWSER", "56C010": "HOLDING_BOWSER", "56C42C": "HEAVY_THROW", "56CD54": "WALK_PANTING", "56D244": "WALK_WITH_HEAVY_OBJ", "56E37C": "TURNING_PART1", "56E394": "TURNING_PART2", "56EAA0": "SLIDEFLIP_LAND", "56EEAC": "SLIDEFLIP", "56F750": "TRIPLE_JUMP_LAND", "5701F8": "TRIPLE_JUMP", "570CB0": "FIRST_PERSON", "5722F4": "IDLE_HEAD_LEFT", "572BA0": "IDLE_HEAD_RIGHT", "57344C": "IDLE_HEAD_CENTER", "573CF8": "HANDSTAND_LEFT", "574490": "HANDSTAND_RIGHT", "5750C0": "WAKE_FROM_SLEEP", "575844": "WAKE_FROM_LYING", "5760EC": "START_TIPTOE", "5769D0": "SLIDEJUMP", "5769E8": "START_WALLKICK", "577064": "STAR_DANCE", "5785B8": "RETURN_FROM_STAR_DANCE", "578C80": "FORWARD_SPINNING_FLIP", "579828": "TRIPLE_JUMP_FLY", } for offset, name in anim_dict.items(): print("WRITING ANIMATION: " + name + " FROM OFFSET: " + offset) subprocess.run([ "C:/Program Files/Blender Foundation/Blender 2.91/blender.exe", "C:/Users/clone/Desktop/mario_skel.blend", "-b", "-P", "C:/Users/clone/Desktop/mass_export.py", "--", offset, name ]) print("DONE!")