Skip to content
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

Display the estimated value at offset in the Curve resource editor #3267

Open
Multirious opened this issue Sep 8, 2021 · 2 comments
Open

Comments

@Multirious
Copy link

Describe the project you are working on

I'm making a signal that will be emitted when a certain point of the curve is reached. Pretty simple.

Describe the problem or limitation you are having in your project

But you can only get its position by using code. I just wanted to know from the inspector and put the offset into a variable from the inspector.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

It's for quick and easy looking up position in a curve if it does not require any code.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Make a popup about the position when hovering over a point. (The value is only estimated.)
godot windows opt tools 64_dQe1xej5Fp
or a line
godot windows opt tools 64_fAhkYNHScr

If this enhancement will not be used often, can it be worked around with a few lines of script?

Well, you can write down print( some_curve.get_point_position(0) ) just not very convenient if you need to change and check the position multiple times.

Is there a reason why this should be core and not an add-on in the asset library?

It's quite simple, small, and quite a useful feature if you need to look up its position a lot and people might be using it a lot for perfect arrangement for each position.

@Multirious Multirious changed the title Ability to see position in Curve Resource Ability to see position in Curve Resource on the inspector Sep 8, 2021
@Calinou Calinou changed the title Ability to see position in Curve Resource on the inspector Display the estimated value at offset in the Curve resource editor Sep 10, 2021
@anvilfolk
Copy link

Currently digging into curves and their editor, just wanted to say this looks easy to implement and is on my radar for the future! :) Subscribing and will update once work is being done on this :)

@Calinou
Copy link
Member

Calinou commented Oct 19, 2022

This could also be done in the Gradient editor to display the X offset of the currently hovered point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants