Code Monkey home page Code Monkey logo

Comments (3)

fxtech avatar fxtech commented on July 28, 2024

Would this be requesting a default interpolation type for the parameter instead of just getting whatever the host decides? Or do you want to set specific key values and interpolation types as part of the default value?
Can you provide concrete examples of how this would be used?

from openfx.

fxtech avatar fxtech commented on July 28, 2024

This needs further discussion. I believe Pierre's example is he wants to do some analysis which then sets some keyframes, and instead of getting the default host linear or smooth interpolation he wants to indicate that the keys should be step-evaluated (ie. kOfxParamInterpTypeConstantStep or kOfxParamInterpTypeHold).

from openfx.

fxtech avatar fxtech commented on July 28, 2024

How about something like this?

enum OfxParamInterpType {
   kOfxParamInterpTypeConstantStep,   // hold until next key
   kOfxParamInterpTypeLinear,     // linear
   kOfxParamInterpTypeSmooth,  // some type of smooth curve
   kOfxParamInterpTypeCustom   // get-only, since this could be host-specific
};

typedef struct OfxParameterSuiteV2 {
   // ... same stuff as in V1
     OfxStatus (*paramGetInterpType)(OfxParamHandle  paramHandle,
			       unsigned int nthKey,
			       int *type);
     OfxStatus (*paramSetInterpType)(OfxParamHandle  paramHandle,
			       unsigned int nthKey,
			       int type);
};

from openfx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.