Dzmitry2918485967ds
Explorer
Dzmitry2918485967ds
Explorer
Activity
‎Jan 05, 2024
01:16 PM
1 Upvote
Hi Kevin @Kevin-Monahan , Any updates on this now that we're back from holidays? 2.9 fixed constant crashes for me but now I'm experiencing extreme lag during editing, same as others in this thread. This happens in both existing and new projects, regardless of their length and complexity. iphone 15 pro, 1080p 60fps hvec (with hdr)
... View more
‎Aug 30, 2023
10:38 AM
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
... View more
‎Aug 30, 2023
09:52 AM
1 Upvote
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
... View more
‎Aug 30, 2023
09:46 AM
I noticed in recent months old API reference page was removed (it had a dark theme). This help page doesn't have python API at all, only JS - https://helpx.adobe.com/substance-3d-painter/home.html This page seems out of date and doesn't include anything from v9.0 AND all links throw a 404 error - https://helpx.adobe.com/substance-3d-painter-python/api/changelog.html How are we supposed to work without a complete API reference?
... View more
‎Aug 30, 2023
09:16 AM
1 Upvote
context="your_assets"
... View more
‎Jul 28, 2023
11:20 AM
1 Upvote
Here is some info that might be helpful to run your external python scripts: You can submit multiple commands/lines to python console, just separate them with a semicolon. For example I use pycharm, and when testing code I don't want to constantly copy files to painters plugin folder. Here is what I do: - In painters python console set the path to pycharm folder such as path = r"D:\_WORK\PycharmProject1\code\" - Then I have this line ready that I simply copy paste: import sys; sys.path.append(path); import substance_functions as funcs; - This adds my pycharm project directory to painters system path (only valid for current session) and allows me to import and run any python script from that folder Then I can call functions like this: funcs.some_function() If I you make some changes to substance_functions.py, you need to reload it in painter by using imp.reload(funcs)
... View more
‎Jul 05, 2023
01:31 PM
Hi @Léna Piquet - Froyok Thank you for your reply, this is exactly what I've been looking for! Now the UI persists even when switching modes and none of the settings get lost. The reason for Qt API: simple oversight. I was handed a UI template and everything was built on top of it, but it was easy to update as per your recommendation. One more question, is there a trick to setting UI style policy for my pluggin? It looks different when docked vs floating, and my attemps to force consistent style led to overriding entire Substance UI
... View more
‎Jul 01, 2023
08:02 AM
Our studio uses a tool that needs to stay open throughout the entire work session, in fact it has it's own Open Project button that also call a bunch of other functions that load metadata associated with the asset, sets up export paths an so on. Substance v 9.0 seems to destroy my QT dialog when I go into Bake Mode, which is unacceptable in our current pipeline. Any way to avoid that? Here is an example of how I create my plugin window: class PluginWidget01(QtWidgets.QWidget):
def __init__(self, parent=None):
super(PluginWidget01, self).__init__(parent)
self.init_ui()
def init_ui(self):
# UI elemenents here
# As well as UI functions and connections
class MyPlugin:
def __init__(self):
self.widget = PluginWidget01()
main_window = substance_painter.ui.get_main_window()
self.dock_widget = QtWidgets.QDockWidget('Exporter 0.1', main_window)
self.dock_widget.setObjectName('PluginWidget01')
self.dock_widget.setWidget(self.widget)
self.dock_widget.setAllowedAreas(QtCore.Qt.TopDockWidgetArea | QtCore.Qt.LeftDockWidgetArea)
main_window.addDockWidget(QtCore.Qt.LeftDockWidgetArea, self.dock_widget)
plugin_widgets.append(self.dock_widget)
def start_plugin():
close_plugin()
MyPlugin() Any help would be greatly appreciated
... View more
‎Apr 27, 2023
06:00 PM
@Wim Coene This is something I ran into in our studio as well. Ultimately decided to rely on texture set names for export (material names) number of reasons: - mesh names can't be trusted, sometimes the asset is broken up into multiple meshes for texturing, or sometimes there are multiple copies of the mesh for each texture set/texture variation that is used in the same file . substance scene name also not reliable - can't force artist to use a single scene without ability to iterate and add 001, 002 etc here are some "fun" things that this workflow brings: - must have automatic tools for maya/max to assign materials and rename it asset_name_1001 , asset_name_1002 etc for each texture set/variation - maya doesn't allow hyphens in material names, but our producers demand ID-9999_asset_name format. therefore my maya materials become ID_9999_asset_name_1001 and my python export tool has to rename files post-export and replace first underscore with a dash @Cyril Dellenbach please please consider adding ability to rename texture sets with python. a lot of times in a studio environment there is a separate text file that holds the source of truth regarding asset name, and most tools rely on that file when exporting/importing and assembling things together, rather than artist given names.
... View more
‎Apr 05, 2023
09:22 AM
1 Upvote
@Cyril Dellenbach thanks for the update. certainly looking forward to a more extensive python api 🙂
... View more
‎Mar 31, 2023
02:01 PM
4 Upvotes
I'm writing an automation tool that will process hundreds of .spp files and output textures from them based on our custom preset. For the most part everything is working. The tricky part is that some of the assets have texture/color variations that are stored in grouped layers such as "0001" , "0002", "0003" etc. Only one of those groups is visible at a time, the rest are hidden. I see no info about layers in the documentaion, is it possible to get access to document's layers, layer types, and their names? Is it possible to toggle their visibility? Ideally I want the tool to be able to toggle folders on and off and export each variation
... View more