-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TVPaint integration #526
Comments
Exciting stuff! Took me a couple of views to notice the Avalon panel from where you launched the workfiles app. So to clarify the communication workflow:
What does a command look like? This interprocess communication sounds a lot like how pyblish-qml works. |
Hi Toke, all communication goes via sockets. I started using this method because I wanted the communication to go both ways. A command, for now, is just a simple string that gets compared by the pythonside or tvpaint-side,
|
@kguyaux have you gotten anywhere further with the TV Paint integration? We'll be interested in implementing TV in avalon very soon probably, though we could put our heads together and pool resources to push it a bit. |
Hi @mkolar, |
I did not have time to work on the tvpaint-integration, But I did manage to upload the tvpaint-part to github: |
..and I forked avalon-core, and added the tvpaint-branch |
@kguyaux great news. We'll have a look at the code with pype.club team to see if we could help somehow. |
I have worked on the TVPaint-integration. So far I have the workfiles-tool working.
It took me a while to find an approach that was stable and not too difficult :-).
The working is based on a python-wrapper around the tvpaint-app that uses the
socketserver
-module(py).With tvp-plugins that are made with the TVPaint-SDK, it is possible to talk to the pythonwrapper.
The wrapper starts tvpaint in a subprocess and keeps listening for commands(like "open the workfile gui"), until the
shutdown
command is given from tvpaint when it closes..The whole module(called "python-tvpaint") that contains the wrapper/launcher, also has functions to talk back to tvpaint. (but for now, only when the given plugin is listening..)
It is possible to keep tvpaint accepting commands in a separate thread, but this can crash tvpaint very easily. I have to explore this some more..
Demo of using the workfiles-tool from within TVPaint:
Now proceeding with Load & Creation-functionality,
to be continued...
The text was updated successfully, but these errors were encountered: