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.
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.
Copy link to clipboard
Copied
Oh god, Adobe* lol..
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
Copy link to clipboard
Copied
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