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 automates the processing of FBX files using Blender's Python API. It is designed to import an FBX file, | |
# remove a specific camera object, reset and apply all rotations and scales to the mesh objects, rename the mesh objects | |
# for clarity, and then export the modified scene back to an FBX file. The script is intended for use in batch processing | |
# or integration into a larger automated workflow, where FBX files need to be cleaned up or standardized before further use. | |
import bpy | |
import sys | |
import os | |
# Function to process the FBX file |
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 is used for resizing and converting images in a specified directory. It traverses through the directory, | |
# and for each image file it finds (with extensions .png, .jpg, .jpeg, .bmp, .gif, .tiff, .tif), it resizes the image | |
# to a target size (default is 1024x1024) and converts it to PNG format. | |
from PIL import Image | |
import os | |
def resize_and_convert_images(root_dir, target_size=(1024, 1024)): | |
for root, dirs, files in os.walk(root_dir): |
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 | |
# Put this in a folder. Point Terminal cd to that folder | |
# Run Terminal prompt: python3 metawipe.py | |
# the script will go through all subdirs and delete files of ".wipethis" | |
# By using this script, you acknowledge and agree that you are doing so at your own risk. | |
# It is highly recommended to back up your data before running this script. | |
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
using UnityEngine; | |
using UnityEditor; | |
[CanEditMultipleObjects] | |
[CustomEditor(typeof(Transform), true)] | |
public class NewTransformInspector : Editor | |
{ | |
/// <summary> | |
/// Draw the inspector widget. | |
/// </summary> |