Skip to main content
Participant
July 21, 2024

Sbsbaker run option doesn't work with exported json from designer

  • July 21, 2024
  • 0 replies
  • 144 views

I am trying to bake mesh maps with sbsbaker with python. This is the code I been using.

import subprocess

location = 'C:/Program Files/Adobe/Adobe Substance 3D Designer/sbsbaker.exe'
run_com = 'run'
json_commnad = '--json'
json_path = 'G:/Projects/vintage_bookshelf/map_bake_parms.json' 

command_json = [location, run_com, json_commnad, json_path]

res = subprocess.Popen(command_json)
print(res)

 

but when I run, it gives me this error

[WARNING][SBSBaker]invert-skew: invalid attribute.
[WARNING][SBSBaker]sbsoutput-place-into-specific-folder: invalid attribute.
[WARNING][SBSBaker]sbsoutput-resource-method: invalid attribute.
[WARNING][SBSBaker]subsampling: invalid attribute.

 When I delete this parms from the json file it runs but nothing happens. Do you have any ideas what i did wrong?