Substance Painter Integration

Hello!
Im trying to integrate susbtance to my shotgun pipeline with the @Diego_Garcia_Huerta tk-substancepainter but every time when I open substance painter I get this error: “[Plugin - shotgun_bridge] Shotgun engine | Shotgun Substance Painter Engine connection was lost. Restarting engine…”

And the shotgun button its not available on the shelf

Anyone else got this?
How I can try to solve ?

Thanks Guys!

2 Likes

What version of substance painter are you using I had a similar issue with anything above 6.1

1 Like

I’ve tested in 6.1.1 and 2019.2.1 got same issue

1 Like

Are you running the a central or distributed config?

Have you tried reloading the plugins folder?

and also it maybe a firewall issue since it is trying to open a port

1 Like

we are using Distributed config

hmm, How I can reload the plugins folder? sorry I’m noob

I checked, I’m not using this port anywhere and also Im not bloking it

1 Like

image

1 Like

oh also you need to have the unreal engine framework not sure if you have that up to date

1 Like

Hi there,

Just in case, make sure you have the latest version of the engine running, There was a change in the way the versioning system works for Substance Painter (2020.1 became 6.1 automagically!) and the engine had to be updated to cope with it.

v1.2.2

Check this section, and replace in the yml file the version number.
modifying-the-toolkit-configuration-files-to-add-this-engine-and-related-apps

After that do not forget to run tank cache_apps
caching-and-downloading-the-engine-into-disk

As @Dfulton1 has mention the tk-framework-unrealqt is used. This is because PySide is required to run toolkit applications and Substance Painter does have it by default.

I believe as long as you do tank cache_apps the required frameworks listed by an engine are downloaded automatically.

Hopefully this solves the issues you are eperiencing.

4 Likes

Hello!
First, thanks @Dfulton1 and @Diego_Garcia_Huerta!

The shotgun button inside substance is showing, but the shotguns tools isnt.


Actually I don’t know the proper workflow with the integration, but, How I publish the substance files?

I also attached the TkSubstance log tk-substancepainter.log (28.4 KB) .

Thanks guys!

1 Like

That menu shows as if the YAML configuration files have not been merged into your shotgun configuration YAML files.

Could you confirm you followed the steps to add the tk-apps:
modifying-the-toolkit-configuration-files-to-add-this-engine-and-related-apps

These yaml files provided should be merged with the original ones as they won't work on their own.

You should merge the contents of YAML file from:
configuration files
into the ones from your shotgun environment configuration.

You can read more about shotgun environment configuration here:
Environment+Configuration+Reference

Once that is done you should see the tk-apps apearing in the menus.

Workflow
To start working within shotgun , you would normally go to Shotgun Icon -> File Open -> Choose your asset -> Choose your task -> click “New File”
This sets the context to the asset you have chosen. After that you can start a new project within substance painter.
You should be able to save your file with Shotgun Icon -> File Save
And you will be able to publish your substance painter session and textures, with Shotgun Icon -> Publish

Cheers

  • Diego
2 Likes

Just for information, it’s now possible to use directly the Painter Python API and the Qt embedded in Painter 6.2.0 so the tk engine for Painter can be made much simpler, without any need for a separate server. Diego’s engine is a very good base to do this ;).

2 Likes

Yeah it will be way simpler. I actually have a prototype for this (I was too excited not to try when it came out), but unfortunately the python API has not catch up with the qml API yet, so I could not get all the features that are needed… Said this, they are adding more and more vey quickly, so I imagine it won’t be long until we have parity between both APIs.
@Alefeve Have you tried the python API already ? if so, what is your experience with it ?

2 Likes

We did the simplification, yes, and it went well, but we just have the very simple operations like open and save for the Painter project, no management of the exports yet.

3 Likes