MoI discussion forum
MoI discussion forum

Full Version: Scaling including background images

From: Axel
29 May   [#1]
Hello Michael,

do you think it would be possible to include the background images scaled together with whole objects arrangements?

If we scale objects with all its lines and surfaces thereafter it is required to scale the background images via image / align menu.

Could this be merged to one scale job?


Best regards,
Axel
From: Michael Gibson
29 May   [#2] In reply to [#1]
Hi Axel,

re:
> do you think it would be possible to include the background images scaled together with
> whole objects arrangements?

I'm not sure how I could set that up - the Transform > Scale command handles scaling objects and background images are not regular objects.

I could set up a script that could scale the background images to a given scale factor, would that be useful?

- Michael
From: Axel
1 Jun   [#3] In reply to [#2]
Hi Michael,

I suspected that maybe the feature "embed image data in 3dm file" could be extended to that idea to scale the images together with the curves/objects.

If I have several images as background images and want to scale the whole file then I would have to scale each image single by single and align to the exact position. There could be always little discrepancies after manual scaling each image.

Such a script I guess would be of help. I don't know if the image would need to be shifted to its original position after the scale.

Thank you,

Axel
From: Michael Gibson
2 Jun   [#4] In reply to [#3]
Hi Axel, here's a TransformBackgroundImages script which has a move function and a scale function which will transform all background images together.

- Michael

Attachments:
TransformBackgroundImages.zip


From: Axel
6 Jun   [#5] In reply to [#4]
Hi Michael,

many thanks!!

Thats really great, because it reduces discrepancies and saves time.


One request: is it possible to get it with undo ability?


Best regards,
Axel
From: Michael Gibson
10 Jun   [#6] In reply to [#5]
Hi Axel,

re:
> One request: is it possible to get it with undo ability?

Unfortunately since background images are separate from regular objects there isn't the same undo infrastructure for them. So it's complicated for a script like this to support undo on them.

- Michael
From: Axel
16 Jun   [#7] In reply to [#6]
Hi Michael,

thanks anyway for that script!


Best regards,
Axel