Skip to content
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

Calling Interface functions in main thread from non-blocking Server #1

Open
munkybutt opened this issue Apr 6, 2023 · 3 comments
Open

Comments

@munkybutt
Copy link

Hey - I am attempting to use clacks to communicate between two instances of 3DsMax.

If I start the server in blocking mode, the 3DsMax instance hosting the server locks.

# Max locks:
server.start(blocking=True)

If I start it in non-blocking, then any max commands I call in my interface error out as you can only run them in the main thread.

# Max functions error:
server.start(blocking=False)

Is there a way to have my interface functions be called in the main thread from a non-blocking server?

@MaVCArt
Copy link
Contributor

MaVCArt commented May 14, 2023

Yes - you will need to use clacks_qt for this :) it was specifically designed for this purpose

@MaVCArt
Copy link
Contributor

MaVCArt commented May 14, 2023

Worth noting that in its vanilla state, clacks will do very little for you - the real power lies in the extension libraries

@MaVCArt
Copy link
Contributor

MaVCArt commented May 14, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants