Search found 763 matches

by pablogil
Wed Nov 27, 2019 5:08 pm
Forum: Python scripting and macros
Topic: Batch converting from shape to mesh (.obj) with low resolution (limited number of faces)
Replies: 4
Views: 151

Re: Batch converting from shape to mesh (.obj) with low resolution (limited number of faces)

I had the time to add OBJ support for my macro, here you have it: https://forum.freecadweb.org/viewtopic.php?f=22&t=41219

It may no fulfill all your requirements but you may be able to extend it to your needs.

Cheers
by pablogil
Wed Nov 27, 2019 7:57 am
Forum: Python scripting and macros
Topic: [Macro] Batch export to mesh (STL and OBJ)
Replies: 3
Views: 143

[Macro] Batch export to mesh (STL and OBJ)

Hi, I have opened this new thread to make it clear to general users the creation of this macro. I has been developed to fit a user need but it has been quickly extended to other user needs . The macro features: FreeCAD "standard" meshing option custom names Converts/exports one or several objects at...
by pablogil
Tue Nov 26, 2019 9:48 pm
Forum: Python scripting and macros
Topic: Batch converting from shape to mesh (.obj) with low resolution (limited number of faces)
Replies: 4
Views: 151

Re: Batch converting from shape to mesh (.obj) with low resolution (limited number of faces)

I think your need is very similar to other one that asked for .STL exporting. I had the time to create a macro to convert to mesh and even batch export to .STL, I would say the changes to make it work for OBJ are very easy. Check it here and feel free to modify it: https://forum.freecadweb.org/viewt...
by pablogil
Sun Nov 24, 2019 9:28 am
Forum: Python scripting and macros
Topic: Export STL script
Replies: 12
Views: 416

Re: Export STL script

New version with mostly all the features explained before:
export_stl.png
export_stl.png (210.64 KiB) Viewed 39 times
Enjoy

Edit: I have fixed some little thing to the macro so I have reuploaded it.
by pablogil
Fri Nov 22, 2019 1:46 pm
Forum: Python scripting and macros
Topic: Export STL script
Replies: 12
Views: 416

Re: Export STL script

Hi, I got the time this morning to play with this idea that turned into a simple macro with its own dockable window. I think it's usable by now, let me know. export_stl_v01.png TODO: join various objects selection into a unique mesh export multiple objects as independent meshes export to file (with ...
by pablogil
Sun Nov 17, 2019 10:16 pm
Forum: UX/UI Design
Topic: Custom properties look bad on dark themes
Replies: 9
Views: 481

Re: Custom properties look bad on dark themes

How to set the ID for a property item? I know it's easy to set name for any QObject, but how to do that for an item within a QTreeView? Or, is there any way to define some named color in the stylesheet, so I can somehow retrieve it programmatically? https://doc.qt.io/qt-5/stylesheet-examples.html I...
by pablogil
Sun Nov 17, 2019 10:13 pm
Forum: UX/UI Design
Topic: Blue on Black
Replies: 18
Views: 775

Re: Blue on Black

About the link text, on KDE-based systems it's handled correctly by Qt from the desktop theme. The problem is on GTK-based systems, where Qt does a very dirty job of trying to emulate GTK theme colors (but as you can see "misses" some) This works for me in a QSS file: /* links color */ a, a:link, Q...
by pablogil
Fri Nov 15, 2019 7:59 am
Forum: UX/UI Design
Topic: Blue on Black
Replies: 18
Views: 775

Re: Blue on Black

Thanks vocx, this is a step forward. As I see, it's a QString which is not "stylesheet styleable" so it would be needed to: turn them into QLabels identify each "case" ("Under constrained", "Over constrained", "Conflicting constrains", etc) with an ID or name applied to the QLabel itself so that I c...
by pablogil
Thu Nov 14, 2019 12:21 pm
Forum: UX/UI Design
Topic: Blue on Black
Replies: 18
Views: 775

Re: Blue on Black

It has to be hard coded because Qt doesn't have a hyperlink element so, we are stuck in the same point. We would need a programmer to locate the code of this "link" and tell us how to make it styleable...
by pablogil
Wed Nov 13, 2019 8:23 am
Forum: UX/UI Design
Topic: FreeCAD 0.19 UI issue: Dropdown menu options without logo are misaligned (due to stylesheet issue)
Replies: 9
Views: 535

Re: FreeCAD 0.19 UI issue: Dropdown menu options without logo are misaligned (due to stylesheet issue)

After seeing this issue, I think the best solution is that all menus entries have an icon, or as default, a "blank" icon.
This way the blank icon would be loaded and all entries would be aligned.

Any programmer could take care of this? I can just create the blank SVG icon...

Cheers