Search found 63 matches

by JAndersM
Thu Jan 21, 2016 11:41 am
Forum: Python scripting and macros
Topic: Image scaling Macro
Replies: 58
Views: 11651

Re: Image scaling Macro

ickby wrote:Or replace the workbench with python alltogether. I mean it only has two tools with very little functionlity, this could easily be done in python too, if someone is willing to put work into this.
This is probably the best solution
by JAndersM
Thu Jan 21, 2016 8:36 am
Forum: Python scripting and macros
Topic: Image scaling Macro
Replies: 58
Views: 11651

Re: Image scaling Macro

The workbench is written in c++ so it's not as easily accessible as if it was coded in Python. The image importer seems to use alpha-cannel for the displayed image but it's not exposed to the user-interface so you need to change the c++ code to enable setting semi-transparent images if I understands...
by JAndersM
Wed Jan 20, 2016 6:49 pm
Forum: Python scripting and macros
Topic: Image scaling Macro
Replies: 58
Views: 11651

Re: Image scaling Macro

hi JAndersM I added the title in your macro to history, nice work Thanks! Very nice and useful. I have done a short movie to illustrate the workflow: Given the blueprint of a model create it again .. https://youtu.be/2iFE40uHrA8 :) Good video! Making the Image half transparent would be helpful ... ...
by JAndersM
Tue Jan 19, 2016 7:53 am
Forum: Python scripting and macros
Topic: Image scaling Macro
Replies: 58
Views: 11651

Re: Image scaling Macro

renatorivo wrote:conic or conical perspective?, exact?
That might be a better description. What do you say piffpoof?
by JAndersM
Mon Jan 18, 2016 9:19 pm
Forum: Python scripting and macros
Topic: Image scaling Macro
Replies: 58
Views: 11651

Re: Image scaling Macro

Fine! To be exact I think piffpoof means the parallax effect viewing objects at different distances if not close (at) the line of sight rather than the parallax due to different lines of sight. This makes scaling hard to do:
parallax.png
parallax.png (14.39 KiB) Viewed 1778 times
You can reuse the image in the wiki if you want. (I drew it)
by JAndersM
Mon Jan 18, 2016 6:59 pm
Forum: Python scripting and macros
Topic: Image scaling Macro
Replies: 58
Views: 11651

Re: Image scaling Macro

As parallax is the major problem with this method, perhaps the first sentence should not use the word "easy"? Dealing with parallax where there is any depth of field is certainly not easy. In fact I would suppose that overcoming it would require stereoscopic viewpoints with sufficient dis...
by JAndersM
Mon Jan 18, 2016 6:22 pm
Forum: Python scripting and macros
Topic: Image scaling Macro
Replies: 58
Views: 11651

Re: Image scaling Macro

Looks good!
by JAndersM
Mon Jan 18, 2016 6:07 pm
Forum: Developers corner
Topic: unit and locale handling
Replies: 1
Views: 551

unit and locale handling

I have been looking for modules /functions (Python) to handle locale (like dot or comma in decimal numbers) and unit conversion from/to user preference to internal mm without much success. I have probably missed some obvious place. What do you use to handle these cases? For gui things I assume you u...
by JAndersM
Mon Jan 18, 2016 8:07 am
Forum: Python scripting and macros
Topic: Image scaling Macro
Replies: 58
Views: 11651

Re: Image scaling Macro

Ok, thanks
by JAndersM
Sun Jan 17, 2016 7:42 pm
Forum: Python scripting and macros
Topic: Image scaling Macro
Replies: 58
Views: 11651

Re: Image scaling Macro

Here is a new version using DraftTracker to create a line between the measurement points.
scale.FCMacro.zip
(1.58 KiB) Downloaded 861 times
renatorivo wrote:I think that can be created the page "Macro_Scale_image" in the wiki
I do not understand, sorry.