Skip to main content
Known Participant
May 24, 2023
Answered

How to expose Scale within the Transformation 2D node

  • May 24, 2023
  • 1 reply
  • 2773 views

Trying to expose the Scale with in the Transformation 2D Node, any help? 🙂

Thank you

Pina

Correct answer davescm

Hi

You need to create a function to drive the scale matrix. To do that :

 

Add an input to your graph. I've called mine Scale Percentage and given it the identifier scale_percentage.

 

In your transform 2D node at the top right of the transform matrix controls click and choose 'Empty Function'

 

Add the following function nodes to the function :

In the Get Float node properties choose the scale_percentage input that you just created.

Right click the Scale Matrix node and click on 'Set as Output Node', it will turn yellow as in the screenshot above.

 

That is it. The exposed input you made will now control the scale.

Note : I have used just one control - if you want X and Y to be separate just add a second input and use two 'Get Float' nodes in the function graph.

 

Dave

1 reply

davescm
Community Expert
davescmCommunity ExpertCorrect answer
Community Expert
May 24, 2023

Hi

You need to create a function to drive the scale matrix. To do that :

 

Add an input to your graph. I've called mine Scale Percentage and given it the identifier scale_percentage.

 

In your transform 2D node at the top right of the transform matrix controls click and choose 'Empty Function'

 

Add the following function nodes to the function :

In the Get Float node properties choose the scale_percentage input that you just created.

Right click the Scale Matrix node and click on 'Set as Output Node', it will turn yellow as in the screenshot above.

 

That is it. The exposed input you made will now control the scale.

Note : I have used just one control - if you want X and Y to be separate just add a second input and use two 'Get Float' nodes in the function graph.

 

Dave

PaneerAuthor
Known Participant
May 24, 2023

also for some reason it asks me to choose float 4.

piotro14533619
Participating Frequently
November 20, 2024

Add a third input for global scale and multiply it by each of the other inputs before they go into the Vector Float 2

Dave


Many thanks Dave! it really works!!