摘要: 代码 import subprocess import os def get_all_mp4_files(directory): """获取指定文件夹下所有的MP4文件""" mp4_files = [] # 遍历指定目录及其子目录中的文件 for root, dirs, files in os.w 阅读全文
posted @ 2024-04-21 15:01 大话人生 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 代码: import subprocess from datetime import timedelta def parse_time(time_str): """将时间字符串解析为秒""" # 如果输入是浮点数,直接返回这个数值 if isinstance(time_str, float): re 阅读全文
posted @ 2024-04-20 21:27 大话人生 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 代码 import subprocess from datetime import timedelta def parse_time(time_str): """将时间字符串解析为秒""" # 将时间字符串分割为小时、分钟和秒 hours, minutes, seconds = map(int, t 阅读全文
posted @ 2024-04-20 21:02 大话人生 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1.代码1 import subprocess def ffmpeg_crop(input_path, output_path, width, height, x, y): # 构建ffmpeg命令 cmd = [ 'ffmpeg', '-i', input_path, '-filter:v', f 阅读全文
posted @ 2024-04-20 20:44 大话人生 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 代码 import bpy # 创建一个可调节大小的立方体 def create_custom_cube(size): bpy.ops.mesh.primitive_cube_add(size=size, enter_editmode=False, align='WORLD', location=( 阅读全文
posted @ 2024-04-19 16:56 大话人生 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1.选中骨骼,进入姿态模式 2.全选所有骨骼 3.运行代码 代码: import bpy import csv import os # 获取当前活动的骨架对象 armature = bpy.context.view_layer.objects.active # 检查选择的对象是否是骨架 if arm 阅读全文
posted @ 2024-04-19 15:32 大话人生 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 文件名 中文解释 Air Squat Bent Arms (1).fbx 空气深蹲(弯曲手臂)1 Air Squat Bent Arms.fbx 空气深蹲(弯曲手臂) Air Squat.fbx 空气深蹲 Back Squat (1).fbx 背深蹲1 Back Squat (2).fbx 背深蹲2 阅读全文
posted @ 2024-04-19 13:27 大话人生 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 代码: import os def get_fbx_files_and_write_to_txt(folder_path, output_file_path): fbx_files = [] # 遍历指定文件夹中的所有文件 for item in os.listdir(folder_path): i 阅读全文
posted @ 2024-04-19 13:21 大话人生 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1.选中骨架,进入姿态模式, 2.运行代码 代码: import bpy import mathutils import math def modify_bone_transformations(armature_name, bone_name, rotation_axes, angles_degr 阅读全文
posted @ 2024-04-19 02:31 大话人生 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1.选中骨骼 2.运行代码 代码 import bpy # 遍历当前选中的所有对象 for arm in bpy.context.selected_objects: # 如果当前对象不是骨架类型,则跳过 if arm.type != 'ARMATURE': continue # 打印当前正在处理的骨 阅读全文
posted @ 2024-04-18 23:54 大话人生 阅读(2) 评论(0) 推荐(0) 编辑