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

Substance Painter Python issue common_params['HipolyMesh'] File not found error

New Here ,
Jul 31, 2023 Jul 31, 2023

Copy link to clipboard

Copied

Substance Painter 2023 Steam Edition

Windows 10

 

Currently trying to automate part of my Baking, and i've been trying to add a High Defintion mesh within the Mesh map using python BakingParameters.set({common_params['HipolyMesh'] : "C:/Users/User_Name/User_File/cowTest/Cow_HP.fbx"}), however it keeps throwing a "File does not Exist Error". However when I manually select the file it seems to work properly. I was wondering if it was a bug, I was missing a step, or that it should be done another way. Any help would be greatly apperciated Thank you.

 

ImageIssue2.jpgImageIssue1.jpg

TOPICS
Baking , Import & Export , Scripting

Views

143

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
New Here ,
Aug 03, 2023 Aug 03, 2023

Copy link to clipboard

Copied

Is there any more information I can proved? or is this a know bug... Also does Autodesk give minor updates if it is? Just recently bought Painter on steam, and it's going to feel really bad if the fix is in 2024. 

SadCat.jpg

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
New Here ,
Aug 03, 2023 Aug 03, 2023

Copy link to clipboard

Copied

Oh god, Adobe* lol..

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
Explorer ,
Aug 30, 2023 Aug 30, 2023

Copy link to clipboard

Copied

try using raw strings and pass your path as a variable
hp_fbx = r"C:/folder/hp_mesh.fbx"

 

if that doesn't work, try and contrust your path using os.path and pass that into BakingParameters

 

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
Explorer ,
Aug 30, 2023 Aug 30, 2023

Copy link to clipboard

Copied

LATEST

actually it does look like a bug. just tried doing it myself. I can retrieve manually assigned mesh path, but whenever I tried to set it to something else, it throws an error. Tried everything: os.abspath, raw strings etc, setting it via BakingParameters.set or common_params.update

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
Resources