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

lua: issue by reading curve coordinates (defined via vars) #4888

Open
strgaltdel opened this issue Dec 19, 2024 · 0 comments
Open

lua: issue by reading curve coordinates (defined via vars) #4888

strgaltdel opened this issue Dec 19, 2024 · 0 comments

Comments

@strgaltdel
Copy link

Somewhere between version 1.5.12 and 1.5.18, something changed in the curve class, which in my opinion represents an inconsistency:

1.5.12:
Task:
Read the coordinates of a curve and write new coordinates.
The coordinates are defined by vars.
image

The "Curve" object is stored in the variable crv.

Reading the coordinates:

src_Cv_X, src_Cv_Y = crv:point(index)	    -- get var sources x,y
local point_X = src_Cv_X:value()            -- read value from "var X"
local point_Y = src_Cv_Y:value()            -- read value from "var Y"

First, the var sources are returned via the point method, and then these sources are read.
later on, coordinates can be changed by changing source values






1.5.18 (and also in 1.6):
The values are now returned directly from the point method, making the var transparent, thus simplifying things:

local point_X, point_Y = crv:point(index)	    -- direct read value, even from vars

Inconsistency:
The var source is now unknown in the code.
If reading is already transparent, then writing should be as well. But this is not the case.
Since the var is unknown, the var cannot be modified either.

Calling crv:point(index,28,10) writes the values directly into the curve, not into the vars.
image

At least in my application, this makes the goal unattainable and the app unusable, as a var value is used for multiple functions/curves.

it would be nice to get a solution

... could be my last posting this year, and so:

i wish you a very merry christmas for you and your family,
relax some time / days,
have fun
and may all your wishes come true

thanks for all your efforts

udo

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

No branches or pull requests

1 participant