Skip to content

Conversation

@drowhunter
Copy link
Contributor

@drowhunter drowhunter commented Nov 3, 2024

  • added ability to generate python script for curve creation from the Curves Setting GUI
  • add new button to save curves instead of relying on exit of Freepie to auto save.
  • added some debugger display attributes to Point and Curve classes for easier debugging
  • added Unit Tests
  • Improved layout of Curve editor to flow instead of single column

Test Script

# points are passed as x,y, x2,y2 ... could not find a way to pass in lists of points, this was the best I could do

if starting:
    start = 0
    end = 100
    step = 10.0 
    easeOut = curves.create(start, end, 12, 40, 50, 91)
    easeIn = curves.create(start, end, 60, 12, 93, 70)
    
    
    for x in range(11):
        diagnostics.debug("{{ x:{0:0.00}, in: {1:0.000}, out: {2:0.000} }}",x*step, easeIn.getY(x*step), easeOut.getY(x*step))

Returns

{ x:0.00,   in: 0.000,   out: 0.000 }
{ x:10.00,  in: 0.258,   out: 34.028 }
{ x:20.00,  in: 0.815,   out: 59.608 }
{ x:30.00,  in: 1.969,   out: 75.907 }
{ x:40.00,  in: 4.019,   out: 85.505 }
{ x:50.00,  in: 7.263,   out: 91.000 }
{ x:60.00,  in: 12.000,  out: 94.607 }
{ x:70.00,  in: 19.309,  out: 97.009 }
{ x:80.00,  in: 33.388,  out: 98.508 }
{ x:90.00,  in: 59.216,  out: 99.405 }
{ x:100.00, in: 100.000, out: 100.000 }

Improved Curve Editor Layout

image

Wide View

image

… python via the new CurveHelper

added ability to generate python script for curve creation from the Curves Setting GUI
add new button to save curves instead of relying on exit of Freepie to auto save.
added some debugger display attributes to Point and Curve classes for easier debugging
add Unit Tests for CurveHelper
improve layout of  Curve editor to flow instead of just using a single column
@drowhunter drowhunter force-pushed the drowhunter/curve-enhancements branch from 6edceca to c4ef84f Compare November 3, 2024 23:18
@drowhunter
Copy link
Contributor Author

I'm guessing this freepie is effectively dead..

@AndersMalmgren
Copy link
Owner

I'm guessing this freepie is effectively dead..

I have tried to find someone that wants to take over, but failed :/

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

Successfully merging this pull request may close these issues.

2 participants