Image scaling Macro

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: Image scaling Macro

Post by chrisb »

It doesn't even need an image:
- new file
- activate Image WB
- Scale
- click two points
- cancel

-> crash
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
easyw-fc
Veteran
Posts: 3630
Joined: Thu Jul 09, 2015 9:34 am

Re: Image scaling Macro

Post by easyw-fc »

yorik wrote: Tue Jun 19, 2018 1:29 am THe Image WB ...
Ok, I found how to avoid this crash...
I will post a new PR.
EDIT:
done PR
sorry for any inconvenience.

PS windows builds still need that 'ImageTools' folder to be added to the deploy Mod folder.
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: Image scaling Macro

Post by chrisb »

easyw-fc wrote: Fri Jun 29, 2018 8:31 am sorry for any inconvenience.
No need to be sorry: You made it - thanks - an error occurred - :oops: - you fixed it - thanks.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Image scaling Macro

Post by sgrogan »

easyw-fc wrote: Fri Jun 29, 2018 8:31 am PS windows builds still need that 'ImageTools' folder to be added to the deploy Mod folder.
This needs to be fixed in the CMakeLists.tst file. It's the installed vs non-installed build thingy. I will try to make a pull request tomorrow.
"fight the good fight"
User avatar
easyw-fc
Veteran
Posts: 3630
Joined: Thu Jul 09, 2015 9:34 am

Re: Image scaling Macro

Post by easyw-fc »

sgrogan wrote: Fri Jun 29, 2018 9:11 pm
easyw-fc wrote: Fri Jun 29, 2018 8:31 am PS windows builds still need that 'ImageTools' folder to be added to the deploy Mod folder.
This needs to be fixed in the CMakeLists.tst file. It's the installed vs non-installed build thingy. I will try to make a pull request tomorrow.
Hi @sgrogan,
did you get a chance to fix the CMakeLists.tst file?
I tested in FreeCAD_0.18.14014_x64_dev_win.7z and the 'ImageTools' folder is still missing...
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Image scaling Macro

Post by sgrogan »

easyw-fc wrote: Fri Jul 06, 2018 6:12 am Hi @sgrogan,
did you get a chance to fix the CMakeLists.tst file?
Sorry, not yet. I haven't forgotten though.
"fight the good fight"
RobZ_inT
Posts: 31
Joined: Thu Jul 26, 2018 11:34 pm

Re: Image scaling Macro

Post by RobZ_inT »

I installed the OP macro and it seems to have worked well. The only issue I'm having is what is probably a newbie thing: The image "layer" sits on top of my sketches and I can't see them unless I toggle off the image visibility. How can I change that?
My system info:
HP 840 Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz
Linux Mint 19 Tara
Running FreeCAD-13528.glibc2.17-x86_64.AppImage
Last edited by RobZ_inT on Sun Jul 29, 2018 5:25 pm, edited 1 time in total.
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: Image scaling Macro

Post by chrisb »

RobZ_inT wrote: Sun Jul 29, 2018 5:03 pm The image "layer" sits on top of my sketches and I can't see them unless I toggle off the image visibility. How can I change that?
You have to change the z-component of the placement of the image. Usually you do this during import in the placement popup by setting a negative value for the offset.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
RobZ_inT
Posts: 31
Joined: Thu Jul 26, 2018 11:34 pm

Re: Image scaling Macro

Post by RobZ_inT »

chrisb wrote: Sun Jul 29, 2018 5:13 pm
You have to change the z-component of the placement of the image.
That worked- Thanks!
Post Reply