image scale (solved)

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
User avatar
bambuko
Veteran
Posts: 2160
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

image scale (solved)

Post by bambuko »

I know how to set image scale by defining a distance between two points - no problem, but....
what if I have a whole bunch of images that need to be set at the same scale?
I can see in report view (having set first image by using "distance between two points") that the scale is 0.807026.
How do I set this number, please, in properties of other images?
Is it some hidden property?

Later edit:
found the answer myself - insert scale formula into Xsize and Ysize properties - easy :lol:
PS rather than delete this embarrassing senior moment, I guess I might as well leave it here for someone else if they ask the same question?
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: image scale (solved)

Post by chrisb »

bambuko wrote: Sun Jan 23, 2022 8:48 am found the answer myself
Goood! For your convenience: You can select all images and then set the value of the property for all of them at once.

Edited, reason: see below.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
bambuko
Veteran
Posts: 2160
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: image scale (solved)

Post by bambuko »

chrisb wrote: Sun Jan 23, 2022 10:13 am ...You can select all images and then set the value of the property for all of them at once.
Fail to see how?
Xsize and Ysize is different for each of the images I am scaling.
I am scaling them by entering expression, like so:
scale.png
scale.png (30.25 KiB) Viewed 858 times
where the value is original Xsize*scale and Ysize*scale, and in this example scale=0.807026

How do I do it, please do it for various images where the only common thing is "scale"
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: image scale (solved)

Post by chrisb »

bambuko wrote: Sun Jan 23, 2022 10:29 am Fail to see how?
And you are right, sorry for that :oops: . You can set them all to the same expression at once, but that would lead to the same size for all of them.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
bambuko
Veteran
Posts: 2160
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: image scale (solved)

Post by bambuko »

chrisb wrote: Sun Jan 23, 2022 11:20 am ...you are right, sorry for that :oops: ...
no problem at all - I am glad that I have learned something today ;) ,
and... if I may be so bold, I would like to make a suggestion:

if it is possible, property view of an image should not only include
Xsize=
Ysize=
but also (if possible?)
Xscale=
Yscale=
current method is "clunky" and imprecise, plus does not allow different scale for X and Y axis
images I use are often distorted and benefit from correction in one axis not just scaling overall

I know (now) how to do it manually using expressions for Xsize and Ysize but it would be great to have this available in properties.

I am (unfortunately) not capable of modifying the code, but perhaps someone might?
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: image scale (solved)

Post by chrisb »

bambuko wrote: Sun Jan 23, 2022 12:18 pm if it is possible, property view of an image should not only include
Xsize=
Ysize=
but also (if possible?)
Xscale=
Yscale=
Not the worst of all ideas :) . I would prefer a single scale though, because that is by far the most frequent usage I have seen. If it works on the Xsize and Ysize parameters, you could for the rare cases of desired distortion use additional factors on X or Y.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
bambuko
Veteran
Posts: 2160
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: image scale (solved)

Post by bambuko »

chrisb wrote: Sun Jan 23, 2022 1:01 pm ...Not the worst of all ideas :)
I was trying to kill two birds with one stone (or perhaps two stones - X & Y)
normally you would have Xscale=Yscale
with an option of modifying them individually (as and if needed)

the main thing is, that until and unless it is implemented I have a way of doing it manually ... (wiki?)
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
Post Reply