This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import cv2 | |
| from scenedetect import SceneManager, ContentDetector, open_video | |
| from tqdm import tqdm | |
| def extract_scenes_pro(video_path, output_folder="shots"): | |
| if not os.path.exists(output_folder): | |
| os.makedirs(output_folder) | |
| video = open_video(video_path) | |
| print(dir(video)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ------------------------------------------------------------ | |
| # Blender Armature Animation Rescale Utility | |
| # | |
| # Safely applies a UNIFORM scale to an Armature object while | |
| # preserving animation by rescaling all relevant location | |
| # FCurves across actions that affect the armature. | |
| # | |
| # - Asserts uniform armature scale | |
| # - Applies object scale (Ctrl+A equivalent) | |
| # - Rescales object & pose-bone location keyframes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /********** | |
| Hides a field in the inspector in Unity3D according to the value of a boolean or enum field. | |
| Warning: Code is blind-generated by AI without human inspection, use at your own risk. | |
| Usage: | |
| // Show 'myField' only when 'isEnabled' is true | |
| public bool isEnabled; | |
| [ConditionalField("isEnabled")] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /********** | |
| This script adds a simple Unity Editor window that allows you to control the Time.timeScale | |
| Warning: Code is blind-generated by AI without human inspection, use at your own risk. | |
| Author: chatgpt.com | |
| Supervisor: fangzhangmnm, Jan.9 2026 | |
| License: MIT | |
| **********/ | |
| #if UNITY_EDITOR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /********* | |
| This script enables F11 to toggle fullscreen mode in the Unity Editor. | |
| Warning: Code is blind-generated by AI without human inspection, use at your own risk. | |
| Author: chatgpt.com | |
| Supervisor: fangzhangmnm, Jan.9 2026 | |
| License: MIT | |
| *********/ | |
| #if UNITY_EDITOR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //https://gist.github.com/fangzhangmnm/38eeeca077db38d0e0b7af53a620947b | |
| //Credit: Inspired by noriben's work https://booth.pm/ja/items/1671087 | |
| //reference https://docs.unity3d.com/Manual/SL-VertexFragmentShaderExamples.html | |
| Shader "fzmnm/mobileWaterToon" | |
| { | |
| Properties | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //https://gist.github.com/fangzhangmnm/bdb16f3970c2158c3bb829bf2685bb94 | |
| // credits: https://www.synnaxium.com/en/2019/01/unity-custom-map-editor-part-1/ | |
| #if UNITY_EDITOR | |
| using UnityEngine; | |
| using UnityEditor; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.IO; |