On 25/07/2017 at 15:17, xxxxxxxx wrote:
Hello guys !
Greetings from a new developer on C4D, but definitely not new on Python
I'm currently trying to bring some tools to C4D, through python plugins creation, and including PySide interfaces. Everything seemed fine thanks to Python but a friend of mine just discovered a huge drawback ... Houdini Engine seem unable to load if PySide was imported first !
As far as I could google, there was known issues with other plugins (ie: some users discoverd that disabling the VRay plugin helped to load the engine), and on Maya for example the author disabled PySide imports on Houdini side to prevent errors.
I'm now facing two options :
- launch my apps in another thread / context / python interpreter and communicate with c4d by any mean (RPC calls etc.)
- find a way to pre-load the Houdini Engine -before- importing PySide, since once loaded it won't complain anymore.
The second option would be really nice but I can't find a way to just load the engine, the only command I could dump was the "Load Assets ..." triggered by the Pipeline menu : c4d.CallCommand(1032265, 1032265), and it's definitely not what I want since it's opening a file browser.
Any through would be greatly appreciated, I hope there is a decent way to make PySide and Houdini work together !
Thanks in advance, and thanks a lot for all the resources I already found on this forum, it's a great addition to the official API documentation