Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


How to expose Rotation within the Transformation 2D node

New Here ,
Aug 13, 2021 Aug 13, 2021

Copy link to clipboard

Copied

Hi, I'm trying to expose only the rotation of the Transformation 2D node. When I click "Expose as a new graph" next to Transform Matrix, I  get "X Y Z W" when the Sbsar is brought into Unity. How Can I expose that as a either a percentage or something that's more user friendly? Thanks!

TOPICS
How to, Import & Export, Substance Graph

Views

55

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

Adobe Community Professional , Aug 13, 2021 Aug 13, 2021
Hi Create a new input parameter called, for example, Angle, with minimum 0 and maximum 360 In transform 2D create an empty function for the transform matrix. In that function set a Get Float node to the Angle parameter, divide it by 360 and send it to a Rotation Matrix node which you should also right click and set as the output node You should now be able to control your rotation with the graph "Angle" input parameter (0-360 degrees) Dave

Likes

Translate

Translate
Adobe Community Professional ,
Aug 13, 2021 Aug 13, 2021

Copy link to clipboard

Copied

Hi

Create a new input parameter called, for example, Angle, with minimum 0 and maximum 360

2021-08-13_22-48-11.jpg

 

In transform 2D create an empty function for the transform matrix.

In that function set a Get Float node to the Angle parameter, divide it by 360 and send it to a Rotation Matrix node which you should also right click and set as the output node

2021-08-13_23-04-22.jpg

 

You should now be able to control your rotation with the graph "Angle" input parameter (0-360 degrees)

2021-08-13_23-06-48.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
New Here ,
Aug 16, 2021 Aug 16, 2021

Copy link to clipboard

Copied

Thanks so 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
Adobe Community Professional ,
Aug 16, 2021 Aug 16, 2021

Copy link to clipboard

Copied

LATEST

You're welcome 🙂

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