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

change non-bezier nested expressions default steps range #32

Open
ljleb opened this issue Jan 28, 2023 · 0 comments
Open

change non-bezier nested expressions default steps range #32

ljleb opened this issue Jan 28, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ljleb
Copy link
Owner

ljleb commented Jan 28, 2023

I'm not totally certain of this, but for non-bezier curves, (so linear and catmull) it may be more convenient if, by default, the contextual steps range each control point lives in was shortened to span from the steps of the expressions right before and right after. For example:

[a:b:c:d:1,2,3,4]

Here:

  • a would span steps range (-1, 2)
  • b would span steps range (1, 3)
  • cwould pan steps range (2, 4)
  • d would span steps range (3, 18) (assuming 20 sampler steps)

For the first control point, the min step is the enclosing interpolation's own min step, and for the last one, the max step.

IIUC this should be a better default value for nested interpolation:

[a:(b:1,2):c: 4, 9, 14]

I'm not sure whether the default steps range of catmull-rom control points should be processed in exactly the same way, if they should take the step of 1 control point further, or if they should stay as they are in main ATM.

To override this behavior, you can just specify a prompt editing step:

[a:[b:0]:c:1,2,3]

Here, b would span steps range (0, 3) instead of (1, 3).

@ljleb ljleb added the enhancement New feature or request label Jan 28, 2023
@ljleb ljleb changed the title change non-bezier sub-expressions default steps range change non-bezier control points default steps range Jan 28, 2023
@ljleb ljleb changed the title change non-bezier control points default steps range change non-bezier nested expressions default steps range Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant