Search found 412 matches

by catman
Sun Sep 17, 2023 5:29 pm
Forum: Help on using FreeCAD
Topic: [solved] Simple Loft fails in PD but not in part
Replies: 3
Views: 558

Re: Simple Loft fails in PD but not in part

TheMarkster wrote: Sun Sep 17, 2023 5:18 pm Path should not be any part of a loft.
Thanks for the quick help. I did not realize that loft does not require a path a all.
Stupid error - I need to update my documentation.
by catman
Sun Sep 17, 2023 5:14 pm
Forum: Help on using FreeCAD
Topic: [solved] Simple Loft fails in PD but not in part
Replies: 3
Views: 558

[solved] Simple Loft fails in PD but not in part

I do get errors "open or closed" from PD Loft when trying to make a circle to a slot shaped part. I did subdivide the circle to match the 4 lines of the slot. The sketched are closed. Still I do get the error. When I use the Part/Loft function it works fine. I made a simple test case,. see...
by catman
Fri Sep 15, 2023 7:40 pm
Forum: Python scripting and macros
Topic: Get User Keyboard Input - cursor keys
Replies: 6
Views: 1046

Re: Get User Keyboard Input - cursor keys

I haven't seen a way to this without changing the C++ code. The KeyboardEvents even do not work the same for different keys. Letter "v" for example only produces a KEY_UP event but letter "m" a KEY_DOWN and KEY_UP event (because of the shortcuts, I guess). PAGE_UP/DOWN keys do n...
by catman
Fri Sep 15, 2023 9:06 am
Forum: Python scripting and macros
Topic: Get User Keyboard Input - cursor keys
Replies: 6
Views: 1046

Re: Get User Keyboard Input - cursor keys

Gui.ActiveDocument # is the same as Gui.activeDocument() Oh, that explaines it. thanks. I don't know what you want to do after all, but I would consider using a Qt window that has the focus and collects the key events. Indeed, things in a window seem to be a lot simpler. Smart to use the vector off...
by catman
Thu Sep 14, 2023 3:02 pm
Forum: Python scripting and macros
Topic: Get User Keyboard Input - cursor keys
Replies: 6
Views: 1046

Re: Get User Keyboard Input - cursor keys

v = Gui.activeDocument().activeView() An arrow key has the "key" value 'UP_ARROW' for example. Excellent, that workes fine. Strangely I found that my code only works without the inner brackets in the above line, like below. The wiki code also has the brackets. v = Gui.activeDocument.activ...
by catman
Wed Sep 13, 2023 7:48 pm
Forum: Python scripting and macros
Topic: Get User Keyboard Input - cursor keys
Replies: 6
Views: 1046

Get User Keyboard Input - cursor keys

I have a question based on this WikiExample to get keyboard input from the user from within a python WB script. The function in the example is just this callback which I am calling for "SoKeyboardEvent". class ViewObserver: def logPosition(self, info): bDown = (info["State"] == &...
by catman
Fri Sep 01, 2023 7:40 pm
Forum: Open discussion
Topic: OpenXR/OpenVR (virtual reality support), new Python workbench WiP
Replies: 134
Views: 54124

Re: OpenXR/OpenVR (virtual reality support), new Python workbench WiP

narrow this down OK, found it This line in commonXR.py is not compatible with my Rift in direct mode with OpenHMD and Monado. #self.swapchain_create_info.usage_flags = xr.SWAPCHAIN_USAGE_TRANSFER_DST_BIT # causes striped images self.swapchain_create_info.usage_flags = xr.SWAPCHAIN_CREATE_PROTECTED_...
by catman
Fri Sep 01, 2023 6:13 pm
Forum: Open discussion
Topic: OpenXR/OpenVR (virtual reality support), new Python workbench WiP
Replies: 134
Views: 54124

Re: OpenXR/OpenVR (virtual reality support), new Python workbench WiP

will do The version did not change things, but I found that selecting different color formats changes the layout of the slicing. I had a closer look at the xr python examples and got one stop further. The gl_cube example runs nromally, but its build with a very simple predefined object, so there ar...
by catman
Fri Sep 01, 2023 1:18 am
Forum: Open discussion
Topic: OpenXR/OpenVR (virtual reality support), new Python workbench WiP
Replies: 134
Views: 54124

Re: OpenXR/OpenVR (virtual reality support), new Python workbench WiP

A keyboard or controller button? This could be done. How the face should be selected? Interesting video. I do not have controllers, and with FreeCAD I rather would use the keyboard anyway. I think the tricky bit is to find a reasonable intuitive way to set a start orientation. The image I posted ha...
by catman
Thu Aug 31, 2023 8:58 am
Forum: Open discussion
Topic: OpenXR/OpenVR (virtual reality support), new Python workbench WiP
Replies: 134
Views: 54124

Re: OpenXR/OpenVR (virtual reality support), new Python workbench WiP

Did you delete pycache before testing? Yes, I did. I did an attempt to not use QOpenGLWidget, and use QOffscreenSurface instead, to separate completely HMD from the desktop. Test code is in a new branch : Closing and reopening works fine with Monado in my case (but not with SteamVR due that ancient...