• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

List of python methods

New Here ,
Apr 19, 2023 Apr 19, 2023

Copy link to clipboard

Copied

Hey,

 

I am trying to find all the Python functions available for Substance 3D Sampler, but I have only been able to find a few in the documentation. I was wondering if there is a comprehensive list available, as I need more functions to accomplish a task. For instance, I am trying to apply a material to an asset, and I am unable to find the relevant function for this. 

Is it also possible to run "image to material" through my script?

If you could provide me with any additional resources or guidance on this matter, I would greatly appreciate it.

 

Thank you for your time and consideration.

TOPICS
Scripting

Views

225

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Apr 19, 2023 Apr 19, 2023

Hello,

All Python API documentation is accessible directly from the app in the Help menu > Python API Documentation

 

And yes, it is possible to run "Image to Material" through scripting:

a basic function to parse a folder of images that create one material per image

def image_to_material_batch(self, folder_path):
        for file in os.listdir(folder_path):
            image_path_list = [os.path.join(folder_path, file)]
            asset_name = os.path.basename(file).split('.')[0]
            a
...

Votes

Translate

Translate
Adobe Employee ,
Apr 19, 2023 Apr 19, 2023

Copy link to clipboard

Copied

LATEST

Hello,

All Python API documentation is accessible directly from the app in the Help menu > Python API Documentation

 

And yes, it is possible to run "Image to Material" through scripting:

a basic function to parse a folder of images that create one material per image

def image_to_material_batch(self, folder_path):
        for file in os.listdir(folder_path):
            image_path_list = [os.path.join(folder_path, file)]
            asset_name = os.path.basename(file).split('.')[0]
            asset = ssa.create_asset(asset_name, ssa.material)
            asset.import_images(image_path_list, 0, ssa.image_to_material_AI_powered, False) 

 

Baptiste_Substance_3D_0-1681926399881.png

Baptiste_Substance_3D_1-1681926461074.png

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines