Comments (3)
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.
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.
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)
- OpenColorIO Properties HOT 1
- Replace copyright and license in all source and header files HOT 3
- Examples don't compile HOT 2
- CMakeLists.txt should have a package target that packages all headers, libs, and samples
- CI should build with and without -DOFX_SUPPORTS_OPENGLRENDER HOT 1
- Submit Conan recipe to conancenter
- Add VFX Platform 2023 to CI build matrix
- Clarify why OfxMemorySuiteV1 should be used HOT 8
- Consider adding a "LUT Generator" rendering path: NoSpatialAwareness HOT 4
- New Icons need to replace old one
- Add `OfxParamTypeStrChoice`, a string-backed enum of choices HOT 21
- Conan & cmake build fails on second build on Windows HOT 2
- Deprecate MacOS-x86_64 install folder HOT 1
- Clip and Image Metadata HOT 21
- Documentation relative paths are wrong HOT 3
- How do the examples(dll) been called?
- Upgrade & Release new version HOT 2
- GPU - extention to pass buffers with different API HOT 9
- Fix warnings related to the typedefs in ofxDrawSuite.h
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openfx.