Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.87 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.87 KB

Convert-GSG-materials

Overview

This Python script automates the creation of .gsgm data files for GSG materials so that they can be detected and imported by GSG's Houdini and Blender importer addons. It recursively processes directories and their subdirectories, using information from folder names to generate .gsgm files.

Usage

  1. Follow the prompt:
    • Enter the directory path to the materials.
    • Input (x) to exit the prompt loop.
  2. The script will generate .gsgm data files for the materials.

Notes

  • .gsgm files will be created based on the material's folder name information. Examples: GSG_MC028_A001_Fabric , Blob_Marble.
  • Existing .gsgm files in the specified directories will have their contents overwritten and updated.

Example

Suppose we have a folder with all our materials that has a structure like this located at "E:\GSG_March2023_Update\materials":

image

Each folder has 10-70 subfolders of materials. Instead of entering each folder individually, you can enter the main folder that encompasses all of them which will be recursively searched. In this case "E:\GSG_March2023_Update\materials" from the example above will give the following output and generate .gsgm files for all 272 materials:

image

Example of the materials being imported and detected by GSG's Houdini material importer:

image