• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

2d transform/scale around set center?

Engaged ,
Oct 15, 2022 Oct 15, 2022

Copy link to clipboard

Copied

How can I do a something like 2d transform  which would allow to scale  something  around a center of transform?  Not just left or right?

 

And do it not 0,5 or 1,5  but rather exactly  to 55 x 1500 pixels for example ?

 

Does anyone ever tried to make  such a node?

I hate 2d transform , It's so  monstrously inconvenient and blurry . Any image editor starting dfrom Photoshop have this feature for decades.   

 

Is there any way to make your own transform gizmo  that would have those features?

TOPICS
How to

Views

97

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 17, 2022 Oct 17, 2022

Oops - sorry, I misread your post.

 

Why not have two for the price of one 🙂

This one should both rotate and scale around a chosen point

2022-10-17_12-15-58.jpg

 

Pixel processor function :

2022-10-17_12-16-17.jpg

 

 

Dave

 

 

 

Likes

Translate

Translate
Community Expert ,
Oct 15, 2022 Oct 15, 2022

Copy link to clipboard

Copied

You could use the pixel processor and feed it inputs for rotation and rotation centre.

2022-10-15_18-00-50.jpg

 

In the pixel processor function below I've just used 0 to 1 for rotation and 0,0 to 1,1 for centre position (0,0 is top left). You could add a little more math to calculate the centre as a pixel based position based on $size.

 

2022-10-15_17-53-41.jpg

 

 

Make sure you set the Sample Gray node in the pixel processor to to bilinear filtering mode

 

Dave

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 17, 2022 Oct 17, 2022

Copy link to clipboard

Copied

Thanks for the reply. But I meant  scale, not rotation.  Can I scale an image off a defined center somehow?

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 17, 2022 Oct 17, 2022

Copy link to clipboard

Copied

Oops - sorry, I misread your post.

 

Why not have two for the price of one 🙂

This one should both rotate and scale around a chosen point

2022-10-17_12-15-58.jpg

 

Pixel processor function :

2022-10-17_12-16-17.jpg

 

 

Dave

 

 

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 18, 2022 Oct 18, 2022

Copy link to clipboard

Copied

LATEST

Thank you very much, Dave

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines