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
Expose curve2D data on the inspector #6914
Comments
Or have a notion of "selected point", so you could edit its properties (here, position) by typing numbers in a small text box overlaid on the main view? Have the data in the inspector would be tedious to edit if your curve is very long. |
@Zylann that is a must for Path, but general Curve resource can't use the visual scene editor panels(I think), I mean like ConcavePolygonShape which gives access to the segments array. |
Yes, it would be a useful feature. I would like to be able to keyframe the curves of Path2D nodes in AnimationPlayers. |
Keyframing this is a different issue, because that would actually mean keyframing array items. |
@Zylann I see, I wonder if will be possible to at least keyframe special arrays like Vector2Array, but is a different issue/request, indeed. |
Still relevant in latest master 3ad9e47 I think. There's no way to set point's position in the inspector. |
Keyframing arrays looks nice but I think it's a bit too overkill compared to the alternative of skinned 2D meshes (especially considering large polygons). |
@Zylann probably, but it can be done currently (but manually), the point is to expose curve data to be able to edit and not having to save the curve resource and edit with a text editor in its horrible formatting. |
I've just looked into this and it seems a bit tricky currently. I exposed the curve point data to the inspector, but it's stored as a dictionary, which isn't the nicest thing to edit via the inspector, and also you can only keyframe the dictionary itself, not the contents (even doing this, the values wouldn't interpolate between frames when I tested it). I think the curve data would need to be stored as an array, although it would have to be an array for point positions and also an array for both curve in and curve out data. Obviously this is less than ideal, so a better solution would be needed. In addition to all this, I believe updating the curve in real-time can be a little slow at the moment as it attempts to bake the data (not sure if it does this every time it changes, but it wouldn't surprise me) |
@sketchyfun more than to animate the curve, the need to see the data is to edit it, editing the resource is too complex because has a terrible formatting and that is why we have an Inspector anyway... |
Yeah I agree that being able to edit the data via the inspector would be nice as well |
The data is a sequence of |
Are there any updates on this? Is something in the works? |
@panorb As far as I know, nobody is currently working on this. Either way, I'll close this issue as it has been superseded by godotengine/godot-proposals#48. (Feature proposals are now tracked in the Godot proposals repository.) |
I think it could be nice to have Curve2D data exposed on the inspector to fine tune points (position, in and out) values from there, that could allow to visually animate curves too.
The text was updated successfully, but these errors were encountered: