-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement uniform scale for layer and mask UVs #196
Conversation
As I mentioned in the code comments, mapping transformation should still refer to the actual input values of the nodes for keyframe and driver compatiblity. Mapping is a bit special since it doesn't take any connection for layer node inputs, but all other props in ucupaint always create input entries on the layer node tree. So to implement uniform scaling, you should set up new input on the layer node, you can see the implementation on input_outputs.py, you can check for example how layer's Then if it's already set up you need to connect the input to mapping node scale, the code is on node_connection.py. You can check One more thing, uniform scale should not be enabled by default for old file compatibility, you can always make this enabled by default with the option preference like the |
I see, I'll look into that |
a58c53c
to
764c43b
Compare
764c43b
to
300da54
Compare
I just tested the latest change and I noticed that the input doesn't disappear when uniform scale is disabled. I think all other inputs exist as node inputs only when necessary. Unless there's a good reason for it, I think uniform scale value should behave the same. |
300da54
to
1911c16
Compare
@ucupumar should be fixed now |
1911c16
to
b99d9cb
Compare
b99d9cb
to
6addafb
Compare
Had to do with the logic setting the default value for the uniform checkbox triggering the |
Ok, I found some driver-related bug while testing this PR, I think I need to fix it first before merging this PR. |
I just fixed the issue, can you please rebase your branch again? |
6addafb
to
c079d02
Compare
Just tested this again, I'm actually thinking about transferring the driver or keyframe from uniform scale value to the mapping itself, but whatever, it's not like someone gonna use it like that, lol. I'm merging this right away, thank you again! 🫡 |
True, that's a rare thing to need to animate. But it can always be improved later in any case |
uniformscale.mp4