/** * @brief Function called to describe the plugin controls and features. * @param[in, out] desc Effect descriptor * @param[in] context Application context */ void SeExprPluginFactory::describeInContext(OFX::ImageEffectDescriptor& desc, OFX::EContext context) { describeGeneratorParamsInContext(desc, context); OFX::ChoiceParamDescriptor* chooseInput = desc.defineChoiceParam(kParamChooseInput); chooseInput->appendOption(kParamChooseInputCode); chooseInput->appendOption(kParamChooseInputFile); chooseInput->setDefault(eParamChooseInputCode); OFX::StringParamDescriptor* code = desc.defineStringParam(kParamSeExprCode); code->setLabel("SeExpr code"); code->setHint("Write your SeExpr code."); code->setStringType(OFX::eStringTypeMultiLine); code->setDefault("cfbm([10*u,10*v,.5])"); OFX::StringParamDescriptor* file = desc.defineStringParam(kTuttlePluginFilename); file->setLabel(kTuttlePluginFilenameLabel); file->setHint("SeExpr source code file."); file->setStringType(OFX::eStringTypeFilePath); OFX::Double2DParamDescriptor* textureOffset = desc.defineDouble2DParam(kParamTextureOffset); textureOffset->setLabel("Texture Offset (u, v)"); textureOffset->setHint("Set the u,v offset texture parameters."); textureOffset->setDisplayRange(-100, -100, 100, 100); textureOffset->setDefault(0.0, 0.0); }
/** * @brief Function called to describe the plugin controls and features. * @param[in, out] desc Effect descriptor * @param[in] context Application context */ void ConstantPluginFactory::describeInContext( OFX::ImageEffectDescriptor& desc, OFX::EContext context ) { describeGeneratorParamsInContext( desc, context ); OFX::RGBAParamDescriptor* color1 = desc.defineRGBAParam( kConstantColor ); color1->setDefault( 0, 0, 0, 1 ); color1->setLabel( "Color" ); }
/** * @brief Function called to describe the plugin controls and features. * @param[in, out] desc Effect descriptor * @param[in] context Application context */ void ColorBarsPluginFactory::describeInContext( OFX::ImageEffectDescriptor& desc, OFX::EContext context ) { describeGeneratorParamsInContext( desc, context ); OFX::ChoiceParamDescriptor* levels = desc.defineChoiceParam( kColorBarsLevels ); levels->setLabel( "Levels" ); levels->appendOption( kColorBarsLevels100 ); levels->appendOption( kColorBarsLevels75 ); levels->setDefault( eColorBarsLevels75 ); }
/** * @brief Function called to describe the plugin controls and features. * @param[in, out] desc Effect descriptor * @param[in] context Application context */ void ColorWheelPluginFactory::describeInContext( OFX::ImageEffectDescriptor& desc, OFX::EContext context ) { describeGeneratorParamsInContext( desc, context ); OFX::ChoiceParamDescriptor* mode = desc.defineChoiceParam( kColorWheelMode ); mode->setLabel( "Type" ); mode->setHint( "Select mode for the color wheel." ); mode->appendOption( kColorWheelModeWhite ); mode->appendOption( kColorWheelModeBlack ); mode->appendOption( kColorWheelModeRainbow ); mode->setDefault( 0 ); }
/** * @brief Function called to describe the plugin controls and features. * @param[in, out] desc Effect descriptor * @param[in] context Application context */ void RampPluginFactory::describeInContext( OFX::ImageEffectDescriptor& desc, OFX::EContext context ) { describeGeneratorParamsInContext( desc, context ); OFX::ChoiceParamDescriptor* direction = desc.defineChoiceParam( kRampDirection ); direction->appendOption( "horizontal", "Horizontal" ); direction->appendOption( "vertical", "Vertical" ); direction->setLabel( "Ramp Direction" ); direction->setHint( "Select the ramp direction." ); OFX::BooleanParamDescriptor* color = desc.defineBooleanParam( kRampColor ); color->setDefault( false ); color->setLabel( "Color Ramp" ); color->setHint( "Enable the R/G/B/Gray ramp." ); }