void OCIOFileTransform::knobs(DD::Image::Knob_Callback f) { File_knob(f, &src, "src", "src"); const char * srchelp = "Specify the src file, on disk, to use for this transform. " "This can be any file format that OpenColorIO supports: " ".3dl, .cc, .ccc, .csp, .cub, .cube, .lut (houdini), .mga, .m3d, .spi1d, .spi3d, .spimtx, .vf"; DD::Image::Tooltip(f, srchelp); String_knob(f, &cccid, "cccid"); const char * srchelp2 = "If the source file is an ASC CDL CCC (color correction collection), " "this specifys the id to lookup. OpenColorIO::Contexts (envvars) are obeyed."; DD::Image::Tooltip(f, srchelp2); DD::Image::PyScript_knob(f, "import ocionuke.cdl; ocionuke.cdl.select_cccid_for_filetransform()", "select_cccid", "select cccid"); Enumeration_knob(f, &dirindex, dirs, "direction", "direction"); DD::Image::Tooltip(f, "Specify the transform direction."); Enumeration_knob(f, &interpindex, interp, "interpolation", "interpolation"); DD::Image::Tooltip(f, "Specify the interpolation method. For files that are not LUTs (mtx, etc) this is ignored."); DD::Image::Divider(f); DD::Image::Input_ChannelSet_knob(f, &layersToProcess, 0, "layer", "layer"); DD::Image::SetFlags(f, DD::Image::Knob::NO_CHECKMARKS | DD::Image::Knob::NO_ALPHA_PULLDOWN); DD::Image::Tooltip(f, "Set which layer to process. This should be a layer with rgb data."); }
void Read::knobs(Knob_Callback *f) { FileDialogKnob* knob = FileDialog_knob(f, &_file, "Ava fail: "); knob->setToolTip("Siia pane faili nimed"); String_knob(f, &_delimiter, "Delimiter: "); CheckBox_knob(f, &_headers, "First line is headers: "); //ComboBox_knob(f, &_colorSpace, "Colorspace: "); //ADD_VALUES(f, "Linear,Log,Gamma corrected"); }
void OCIOFileTransform::knobs(DD::Image::Knob_Callback f) { File_knob(f, &m_file, "file", "file"); DD::Image::Tooltip(f, "Specify the file, on disk, to use for this transform. See the node help for the list of supported formats."); // Reload button, and hidden "version" knob to invalidate cache on reload Button(f, "reload", "reload"); DD::Image::Tooltip(f, "Reloads specified files"); Int_knob(f, &m_reload_version, "version"); DD::Image::SetFlags(f, DD::Image::Knob::HIDDEN); String_knob(f, &m_cccid, "cccid"); const char * srchelp2 = "If the source file is an ASC CDL CCC (color correction collection), " "this specifys the id to lookup. OpenColorIO::Contexts (envvars) are obeyed."; DD::Image::Tooltip(f, srchelp2); DD::Image::PyScript_knob(f, "import ocionuke.cdl; ocionuke.cdl.select_cccid_for_filetransform(fileknob='file', cccidknob = 'cccid')", "select_cccid", "select cccid"); Enumeration_knob(f, &m_dirindex, dirs, "direction", "direction"); DD::Image::Tooltip(f, "Specify the transform direction."); Enumeration_knob(f, &m_interpindex, interp, "interpolation", "interpolation"); DD::Image::Tooltip(f, "Specify the interpolation method. For files that are not LUTs (mtx, etc) this is ignored."); }