Skip to content

hi4444/PowerShell_Script_Projects_for_manim

Repository files navigation

PowerShell Scripts for manim

GitHub stars GitHub issues License: MIT

A collection of scripts and utilities designed to simplify and automate Manim workflows and project management.


About

This repository includes a set of scripts and tools to streamline Manim project automation.
All utilities are designed to be user-friendly and suitable for both beginners and advanced users.

Supported Platforms

  • Operating System: Windows only

Supported IDEs


Utils / Script List

1. Automation/GUI PowerShell Script

Currently not compatible with the PowerShell application inside Windows Terminal (crashes on use).
Works only in IDE-integrated PowerShell terminals such as Visual Studio Code or PyCharm.
Support for Windows Terminal may be added in the future.

This script allows you to run Manim projects automatically through a GUI with various customization options.


PyCharm Requirements


VS Code Requirements


Installation

Download the latest release from the Releases Section.


Setup Guide (Run/Debug Configuration)

Follow these steps to set up and run Manim_Run.ps1 in your IDE.

Visual Studio Code Setup

Ensure Code Runner, the PowerShell extension, and PowerShell 7+ are installed.

  1. Press Windows + R to open the Run dialog.
  2. Enter the following path to open VS Code’s settings.json file:
%appdata%\Code\User\settings.json
  1. Go to the last line and remove the closing bracket }.
  2. Copy and Paste the following into the line you just made and indent it Properly.
  ,"launch": {
    "version": "0.2.0",
    "configurations": [
      {
        "name": "Run Manim",
        "type": "PowerShell",
        "request": "launch",
        "script": "",  // Find and copy the full path to your Manim_Run.ps1 file inside the qoutes — Replace the backslashes (\) with forward slashes (/)
        "args": [],
        "cwd": "${workspaceFolder}"
      }
    ],
    "compounds": []
  }
}
  1. Save the file. Their might be a notification asking to OverWrite so you can save. If you get that click OverWrite otherwise it will not save. Then if you press f5 it will run the script.

If you get a Excution policy error

Run PowerShell as admin and Copy and paste the code below.

Set-ExecutionPolicy Unrestricted -Scope LocalMachine -Force When prompted, type A and press Enter. Do the Exact same for PowerShell 7 as well

If issues persist, open Settings → System → Advanced → expand the PowerShell section → enable/Turn on

“Allow local PowerShell scripts to run without signing. Require signing for remote scripts.”


PyCharm Setup

  1. Open your project containing Manim_Run.ps1 in PyCharm.
  2. Go to Run → Edit Configurations.
  3. Click the + icon → select Shell Script.
  4. Configure the following:
    • Name: Run Manim
    • Script path: Full path to Manim_Run.ps1 If it pastes with BackSlashes (/) replace them with Forward slashes (/) Example: C:\Users\YourName\Documents\Manim_Run.ps1
    • Remove the Interpreter path / leave blank
  5. Click Apply and then OK.
  6. Select the new configuration and press Shift + F10 (or the green play button) to run the script.

Note: Make sure your execution policy allows running local PowerShell scripts. If needed, run PowerShell as Administrator:

Set-ExecutionPolicy Unrestricted -Scope LocalMachine -Force

When prompted, type A and press Enter. Do the Exact same for PowerShell 7 as well

If issues persist, open Settings → System → Advanced → expand the PowerShell section → enable/Turn on

Tips & Notes

Tip Details
Reset paths Press Windows + R, enter %LocalAppData%\Manim_Cache, and delete manim_paths.txt.
To remove a single path, Open up the txt file and remove the path and save. Use this if Manim or Python paths are no longer valid or were entered incorrectly.
Fix visuals Resize the PowerShell window if colors or alignment appear incorrect.
Recommended Use PowerShell 5.1+

Note: The GUI provides a structured interface with clear categories for easy navigation and configuration.

About

This is where put my scripts and tools i make.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published