上一页 1 2 3 4 5 6 7 8 ··· 63 下一页
摘要: 代码: import os def rename_en_srt_files(parent_directory): # 遍历指定的父目录及其所有子目录 for root, dirs, files in os.walk(parent_directory): for file in files: # 检查 阅读全文
posted @ 2024-04-25 23:03 大话人生 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 1.摄像机“Camera”在一个名叫“渲染”的集合中 2.代码: import bpy # 设置输出路径和文件名 output_path = "/path/to/output/" # 替换为你的输出路径 filename = "rendered_animation" # 输出文件的前缀 # 获取名为 阅读全文
posted @ 2024-04-25 19:39 大话人生 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 1.编辑模式下, alt选中一圈线,SHIFT+V,移动线 阅读全文
posted @ 2024-04-24 14:59 大话人生 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 代码: import os def change_extension(directory, old_suffix, new_suffix): """ 遍历指定目录及其子目录,将所有后缀为 old_suffix 的文件修改为 new_suffix。 """ for root, dirs, files 阅读全文
posted @ 2024-04-24 02:42 大话人生 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 代码 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 大话人生 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 代码: import subprocess from datetime import timedelta def parse_time(time_str): """将时间字符串解析为秒""" # 如果输入是浮点数,直接返回这个数值 if isinstance(time_str, float): re 阅读全文
posted @ 2024-04-20 21:26 大话人生 阅读(7) 评论(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 大话人生 阅读(16) 评论(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 大话人生 阅读(14) 评论(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:55 大话人生 阅读(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 大话人生 阅读(21) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 63 下一页