Stretching PNG line while keeping proportions

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Albo
Posts: 28
Joined: Wed Jul 04, 2018 1:44 pm

Stretching PNG line while keeping proportions

Post by Albo »

I have a PNG line. Simple straight line of a certain width.
I simply want to make it longer but without changing width.
At the moment it will change width as I stretch it out or in.

Any way of doing this?
User avatar
SimplSam
Posts: 1218
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: Stretching PNG line while keeping proportions

Post by SimplSam »

How are you stretching it? Layer Transforms, Bones, Mesh Warp ??
Moho 14.3 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.3 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
Albo
Posts: 28
Joined: Wed Jul 04, 2018 1:44 pm

Re: Stretching PNG line while keeping proportions

Post by Albo »

Stretching with the layer so it also skews.
I added a bone to the PNG. I can stretch the bone but the linked image doesn't change.

This is surely my lack of knowledge.
User avatar
SimplSam
Posts: 1218
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: Stretching PNG line while keeping proportions

Post by SimplSam »

OK. So the easiest stretch to do is with layer transforms, using the outer central layer transform controls. Like below:

Image
Moho 14.3 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.3 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
Albo
Posts: 28
Joined: Wed Jul 04, 2018 1:44 pm

Re: Stretching PNG line while keeping proportions

Post by Albo »

UPDATE: That doesn't work with a PNG image.
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Re: Stretching PNG line while keeping proportions

Post by chucky »

Alno. it sounds like you are holding the shift button when you transform, that makes the tool maintain volume, thereby stretching or squashing ( which is an awesome feature btw).
Try transforming without shift.
User avatar
Greenlaw
Posts: 10403
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Stretching PNG line while keeping proportions

Post by Greenlaw »

Albo wrote: Thu Oct 21, 2021 3:46 pm Stretching with the layer so it also skews.
This sounds like your line image was drawn at an angle and imported that way. If so, is there are reason the line can't be drawn horizontal or vertical? This will allow Moho to scale it properly without skewing.

If it must be imported this way, you may either...

1. 'Correct' the rotation by placing the layer inside a group and rotating it to be horizontal (or vertical as the case may be,) and then stretching the group layer. You may then counter rotate the group to match the original rotation.

2. Use a bone to stretch the artwork. With this approach, the angle doesn't matter so long as the bone is aligned with the artwork.

IMO, it's probably easier/cleaner to 'correct' the rotation in your paint program and import it that way. If needed, after stretching the layer in Moho, you can always rotate the image back into its desired angle.

Hope this helps.
Albo
Posts: 28
Joined: Wed Jul 04, 2018 1:44 pm

Re: Stretching PNG line while keeping proportions

Post by Albo »

Thanks for all the info.
I will test again with a new image.

Cheers,
Post Reply