![]() # Note: when unregistering, it's usually good practice to do it in reverse order you registered. Km = wm.(name='Window', space_type='EMPTY')Īddon_keymaps.append((km, km.keymap_items.new(BrushSwap1.bl_idname, 'ONE', 'PRESS')))Īddon_keymaps.append((km, km.keymap_items.new(BrushSwap2.bl_idname, 'TWO', 'PRESS')))Īddon_keymaps.append((km, km.keymap_items.new(BrushSwap3.bl_idname, 'THREE', 'PRESS'))) # so we have to check this to avoid nasty errors in background case. # Note that in background mode (no GUI available), keyconfigs are not available either, # store keymaps here to access after registration """Swap the active draw brush to the third hot slot."""īl_label = "Set active the brush to slot 3" If = 'PAINT_TEXTURE' and 'screen-chisel' in : """Swap the active draw brush to the second hot slot."""īl_label = "Set active the brush to slot 2" If = 'PAINT_TEXTURE' and 'multiply-chisel' in :īpy.context.tool_settings.image_paint.brush = """Swap the active draw brush to the first hot slot."""īl_label = "Set active the brush to slot 1" I hope someone else with this problem may find this quick snippet useful, and it might save them the trouble of digging and research to make a “very first” dive into the Blender API. So I wrote this small script without any fluff, in the future I might add a menu where I can pick brushes to put in the hot-swap-slots, but right now it is hard-coded to my own three brush names. This was right after I had played around with the script editor for the first time, since someone ( was asking for python help, and being a veteran programmer but a Blender API n00b, I dove in a little bit to help them out. I don’t have many, only three, so it was just silly to me that I couldn’t press the 1-9 keys since they are completely unbound in texture paint mode. The other day while I was texture painting, I was getting really frustrated and troubled by having to “click” the brushes and change between the different draw brushes I have. I don’t intend (right now) to turn this into an add-on, anyone who wants to step up is free to do so and this code is provided without any limitation. ![]() Disabling unnecessary devices in bios such as bluetooth and wifi adapter.I hope this is the right place to post free code.Fiddling with BIOS options, clearing CMOS flash.So the system seems to work with other linux distro's but maybe has an issue with the proxmox kernel. The GPU seems to work as everything on the display is crisp and very small on my 4k display. I can run the latest ubuntu desktop version on it just fine, both in usb-live-mode and installed on the same SSD I want to install proxmox to.(Haven't tried adding nomodeset after the proxmox package install yet) If in run the manual proxmox installer on it, the installer replaces the kernel and the system crashes on reboot. I can install and run the latest debian buster version just fine.If I then add the "nomodeset" boot parameter the system boots properly. If I run a much older Proxmox v5 installer, the installer completes succesfully (without nomodeset param), but the system won't boot and gets similar errors as described in booting the installer of v6 ( Here's a screen recording of booting v5).If I try adding the "nomodeset" boot parameter, the installation doesn't start and it opens a terminal instead of install procedure. If I try to install the lastest proxmox ISO (6.3-1 or 6.2-1) on it, the installer runs, gets to the menu where I can choose proxmox install, it finds the ISO, but then after the installer notifies me it has found the ISO the display goes black and system reboots. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |