Skip to main content
Participant
April 30, 2022
Question

How to do simple things using Python API

  • April 30, 2022
  • 1 reply
  • 407 views

Hi guys,

 

I am trying to do few extra things in my plugin which will help me a lot with my workflow.

  • I know how to load sbs by using loadUserPackage, how I can open specific package in Substance Designer?
  • Is possible to change imported FBX file_pah using python? Currently it seems this is the only property which is read_only when changing annotation property value using Python. When I tried to change it manually it works just fine.
  • Is possible to change Bake model information of specific FBX using Python? I have seen old post 1 - 3 years old which said it is not possible yet. So after 1 - 3 years I believe this should be possible now right? Just cannot find a way which might mean it is not possible - little bit odd it was not picked up?
  • Related to above (Bake model information). Is it possible to load preset for Bake model information?

 

So far it seems I have all other elements set. I am just missing the above options which will help me a lot to improve my workflow. If anyone have any information, direction or anything what can help or workaround if there is no straight option I will be super happy and I will trully appreciate the help.

 

Thank you,
Bart

This topic has been closed for replies.

1 reply

Luca Giarrizzo
Community Manager
Community Manager
May 4, 2022

Hello @Bart-k,

 

How I can open specific package in Substance Designer?

Is possible to change imported FBX file_pah using python?

Neither can be done at this time through the Python API. These are but some of the known limitations we want to address in the future. I appreciate your patience in the meantime!

 

Is possible to change Bake model information of specific FBX using Python?

Starting with version 12.1.0, the SBSBaker tool now ships with Designer's installation by default. You may use it to automate baking tasks using custom settings in the command, or by using a JSON preset file. See the linked documentation to learn more.

 

Is it possible to load preset for Bake model information?

JSON presets can be created and loaded in Designer's user interface by using the dropdown menu on the bottom left of the Bake model information window.

 

I hope this was helpful and informative!

Best regards.

 

Luca Giarrizzo | Quality Engineer - Substance 3D Designer | Adobe