diegogarciahuerta / tk-substancepainter

:moyai: Shotgun Toolkit Engine for Allegorithmic Substance Painter https://www.allegorithmic.com/products/substance-painter
Other
45 stars 36 forks source link

Shotgun menu icon not showing #1

Closed samkenw closed 4 years ago

samkenw commented 5 years ago

Hi Diego,

I have been trying ton install your engine but it is not showing in substance and I am not recieving an error in the shotgun console... Do yoiu know how I might debug this?

Thanks!

Greetings Sam

alfonsocasadodiez commented 5 years ago

Do you have git installed on your system? https://git-scm.com/download/win

You might find a warning that it's skipping the entire module as it cannot resolve the git argument.

Also there's a mistake on the documentation. You should try adding to the engine_locations.yml this code instead

engines.tk-substancepainter.location: type: git path: https://github.com/diegogarciahuerta/tk-substancepainter version: v1.1.0

samkenw commented 5 years ago

Yes, git is installed. Thanks, I will try this!

samkenw commented 5 years ago

Hi, thanks, now the substance-plugin is being loaded into the plugins folder but I am getting the following error:

[Plugin - resources-updater] No project open, resources updater discarded [Plugin - shotgun_bridge] (DEBUG) Shotgun engine | Initializing Shotgun Bridge Plugin. [Plugin - shotgun_bridge] (DEBUG) Shotgun engine | Engine port:56273 [Plugin - shotgun_bridge] (DEBUG) Shotgun engine | Starting tk-substancepainter engine with params: "C:/Program Files/Shotgun/Python/python.exe" "Z:/Shotgun/ZwischenMehlUndMilch/install/git/tk-substancepainter/v1.1.0/startup/bootstrap.py" [Plugin - shotgun_bridge] Shotgun engine | Shotgun Substance Painter Engine connection was lost. Restarting engine...

Do you know what this could be due to?

alfonsocasadodiez commented 5 years ago

Check this other thread as I also ran into the same issue and got it fixed by adding the unrealqt framework. 🖖

samkenw commented 5 years ago

Perfekt, that has done it! Many Thanks to you Sir! I am now getting template errors on new file creation but I suppose that is of my own doing.

alfonsocasadodiez commented 5 years ago

Glad to hear that! Hope you can fix the rest :)

changsJC commented 5 years ago

Hi Diego, I am having similar problem getting this to work on mac. There is no errors on the shotgun launcher side, but on substance side I got similar error messages.

[Plugin - shotgun_bridge] (DEBUG) Shotgun engine | Initializing Shotgun Bridge Plugin. [Plugin - shotgun_bridge] (DEBUG) Shotgun engine | Engine port:50328 [Plugin - shotgun_bridge] (DEBUG) Shotgun engine | Starting tk-substancepainter engine with params: "/Applications/Shotgun.app/Contents/Resources/Python/bin/python" "/Users/username/Library/Caches/Shotgun/bundle_cache/git/tk-substancepainter/v1.1.1/startup/bootstrap.py" [Plugin - shotgun_bridge] Shotgun engine | Shotgun Substance Painter Engine connection was lost. Restarting engine...

I tried substance version 2018.3, 2019.1 and 2019.2, with or without unrealqt or not. The plugin is created on in Documents. Do you know what else might went wrong? Thank you!

diegogarciahuerta commented 4 years ago

Hi @changsJC , https://github.com/ue4plugins/tk-framework-unrealqt does not include PySide2 for Mac , so I'm afraid it won't work for that platform as it is.

diegogarciahuerta commented 4 years ago

Hi Dónal.

If everything was to work as expected, you should see something like this: [image: image.png]

A new shotgun icon in the toolbar (SG) should show up, where you can open the shotgun menu. Please check all the apps that are supported in the github account, https://github.com/diegogarciahuerta/tk-substancepainter/blob/master/README.mdbut basically all the common ones from any other engine, loading/saving/publishing/etc...

Now if this does not work, there are a few things you can check,

C:\Users\AppData\Roaming\Shotgun specifically, tk-substancepainter.log, and tk-desktop.log, it will give you an indication what is going on. Can you see any errors there ?

The reason why I use websockets is that shotgun toolkit is written in python and at the time you could only write plugins for substance painter in QML. So the shotgun toolkit part is written in python, and anything related to the operations within substance painter is written in QML. The communication happens through websockets, more specifically between the QtWebSockets implemented in QML, and the QtWebSockets implemented in the PySide2 version I use from the tk-framework-unrealqt . For example, the engine in python might request through websockets to QML to give back the name of the project is loaded, so the engine can react to that and change it's context accordingly, or any other operations like saving, exporting textures , etc...

Because this communication back and forth is done through a socket/port, I wonder if there is anything that is not allowing the QML bit to communicate back to python. Next time you run it, I'd check the port number (printed in the substance painter log) to see if for any reason is blocked.

The good news is that as of 2020.1, substance painter supports python3, but the API is still in it's infancy and while I have a prototype of the engine that supports it, it is no near close to the capabilities the QML API supports. It seems they are actively working on this, so I'm hoping soon I can just release a version that does not require the external framework, which also in return will mean the engine works without any other issues in Mac/Linux.

Hope this helps,


[ D i e g o G a r c i a H u e r t a ]

P i p e l i n e & P r o d u c t i o n t o o l s d e v e l o p m e n t | A R / MR / V R E: diegogh2000@gmail.com diegogh2000@gmail.com

On Thu, May 7, 2020 at 10:26 AM Dónal McMullan notifications@github.com wrote:

Substance Painter noob Pipe TD here...

I'm getting this error:

[Plugin - shotgun_bridge] (DEBUG) Shotgun engine | Initializing Shotgun Bridge Plugin. [Plugin - shotgun_bridge] (DEBUG) Shotgun engine | Engine port:57111 [Plugin - shotgun_bridge] (DEBUG) Shotgun engine | Starting tk-substancepainter engine with params: [Plugin - shotgun_bridge] Shotgun engine | Shotgun Substance Painter Engine connection was lost. Restarting engine...

I definitely have the Unreal QT Framework installed, and it's definitely getting loaded by Painter on startup.

I'm on Windows 10 pro, running Painter 2019.2.2 and I specified version 1.2.1 of tk-substancepainter in engine_locations.yml

I ran "tank cache_apps" from a Linux client, but I'm not trying to run the plugin on Linux.

BTW - I'm not sure what I should see on success - should there be an additional menu or menu entry in the UI? Or just the file open/close etc get redirected to the Shotgun asset browser?

BTW2 - I'm curious about the architecture - what is using websockets to talk to what? Does the Shotgun UI element run in a separate process or is the websocket connection to Shotgun Desktop?

I'd appreciate any suggestions :)

Thanks.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/diegogarciahuerta/tk-substancepainter/issues/1#issuecomment-624960019, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJHMZYIE4SYHK5QYNXUBKG3RQH52ZANCNFSM4HNO2ZNQ .

diegogarciahuerta commented 4 years ago

For reference someone named Dónal must have posted a comment but then deleted it, I replied to his comment from a github email, not from this page.

I will close the issue until we find a tk framework that provides PySide2 in Mac/linux, as it is required for websockets to work.