sure
import os
# Get the list of files in the current directory
files_in_directory = os.listdir()
# Filter out only the .mp4 files
mp4_files = [file for file in files_in_directory if file.endswith(".mp4")]
# Iterate over each .mp4 file
for mp4_file in mp4_files:
# Output directory
output_dir = "output"
# Create the output directory if it doesn't exist
os.makedirs(output_dir, exist_ok=True)
# Command to execute
command = (
f'PythonDancer.exe --cli --automap --out_path "{output_dir}/{mp4_file}.funscript" "{mp4_file}"'
)
# Execute the command
os.system(command)
be sure to delete the .mp4 from the funscript file. I use renamer for that.
Be sure to have the pythondancer.exe and the script in the same directory as your videos