-
Notifications
You must be signed in to change notification settings - Fork 26
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
Mac OS X support #12
Comments
I believe a tech art community member completed the Mac support, yes. I do not own a Macintosh so I can not test it for you. the blender_applications\darwin_blender_application.py file looks complete to me. |
I believe there is a dependency on the PyObjc project to make it work. Much like we need pywin32 to make the windows version work. |
I can't seem to be able to install AppKit with pip. Where can I grab the dependencies? |
unless someone else has taken it, over i was never able to get mac support fully working |
Last I recall we had it partially working but not at the same level of functionality as we have currently on windows |
|
It seems there is still an issue. In the Darwin Blender application, there is a method with __ (double underscore) being called which does not exist in the class. And the handler does not start the Window correctly as "startup" in file condition is not fulfilled? Any idea on how to fix the last one? |
which method is this? afraid I won't be much help here since I don't have a mac.
the missing startup file has now been added, see PR #22 |
Hi, Last time I tried bqt it wasn't working on either mac or windows, @hannesdelbeke just notified me on blender chat that the current master should fix my issues, I will give it another go today and I'm able to test/debug it on mac if needed |
did you get a chance to test on mac? |
Yep my bad it works well, I ended up using a fork of bqt for the specific use case I had but I also tried again with bqt master with similar results |
thanks for your quick response 🙏 |
This might not work as intended due to the focus operator. Right now it should run the following code whenever the window focus changes. Which I believe would not run on Mac. import ctypes
keycodes = [
("_ALT", 0x12),
("_CTRL", 0x11),
("_SHIFT", 0x10),
("VK_LWIN", 0x5B),
("VK_RWIN", 0x5C),
("OSKEY", 0x5B), # dupe oskey, blender names it this
]
for name, code in keycodes:
ctypes.windll.user32.keybd_event(code, 0, 2, 0) # release key |
Did it change recently? |
It didn't change, just surprised you didn't get any errors tbh. |
tested myself on mac, and noticed bqt is completely broken. |
after small fix where method was named with Also on exit I get an error, just like on windows #47 TODO
|
when I set the env var "BQT_DISABLE_WRAP" to 1, to disable wrapping, bqt seems to run great on Mac. see #66 |
released some more fixes, since code broken when init on blender startup. likely some code functions different if startup is not finished yet. seems to be running alright now if wrapping is disabled erroralso running into this warning when creating a dock widget. repro 100%
locall modules PySide2 5.15.2.1 (believe we only use this one) |
Honestly it was months ago so I could'nt tell, I feel like I would just have solved the issues you mention locally since they seem straightforward, but I think I would have specify it here (maybe not 😅)... Anyway now my main driver isn't a Mac anymore but I can still test anything needed on an m1 laptop. Don't hesitate |
i wonder if perhaps you pip installed bqt on mac before we updated it on pip. |
Nope I used this here which is now very outdated: https://github.com/melMass/bqt I'll start fresh and rety bqt soon as I'm currently reimplementing a lot of my tools in pyside6. I don't know if you use/heard of Prism v2, it's a pretty awesome asset/shot manager. Most of its core will be open source (it already is but just not "deployed" anywhere yet). The most impressive feature to me is how each integrations are seamless and really well made (some of these will be payed at the end of this month), it's all pyqt based but they seem to be able to ship a very minimal build, I just asked over their discord to know more: ls blender_integration
╭───┬────────────────────────┬──────┬──────────╮
│ # │ name │ type │ size │
├───┼────────────────────────┼──────┼──────────┤
│ 0 │ space_topbar1.py │ file │ 72 B │
│ 1 │ space_topbar2.py │ file │ 534 B │
│ 2 │ PrismAutoSaveRender.py │ file │ 3.0 KB │
│ 3 │ PrismInit.py │ file │ 6.1 KB │
│ 4 │ qminimal.dll │ file │ 36.4 KB │
│ 5 │ python3.dll │ file │ 59.0 KB │
│ 6 │ qoffscreen.dll │ file │ 650.8 KB │
│ 7 │ qwindows.dll │ file │ 1.2 MB │
╰───┴────────────────────────┴──────┴──────────╯ |
Hello! |
I found an interesting fix:
running it like this form terminal makes the addon and widgets work without any issues at all for some reason |
That might explain why I never had any issues, I only run software from the command line |
I see there is an option to run this code for MacOSX. Is it supported?
The text was updated successfully, but these errors were encountered: