You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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,ylocalpoint_X=src_Cv_X:value() -- read value from "var X"localpoint_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:
localpoint_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.
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
The text was updated successfully, but these errors were encountered:
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.
The "Curve" object is stored in the variable crv.
Reading the coordinates:
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:
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.
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
The text was updated successfully, but these errors were encountered: