Experimental:Palette:cppParsTemplateGen

From Derivative
Revision as of 14:25, 17 February 2021 by Michel (talk | contribs)
Jump to navigation Jump to search

Summary
[edit]

The CppParsTemplateGen COMP can be used to quickly generate parameters.cpp and parameters.h files and kickstart your Custom Operator projects. The parameters.cpp and parameters.h files are used to define the Custom Parameters on Custom OPs.

To use, add the class and header to your C++ projects and after importing the files, then call the setup(manager) function. This will add all the parameters found on the referenced COMP into C++ code which will then appear on your custom operator parameter pages when the .dll of your project is loaded. The code generated follows Derivative's guidelines and conventions.

PythonIcon.pngPalette:cppParsTemplateGen Ext


Parameters - Generator settings Page

Source Parameters Comp Sourceparameterscomp - The COMP with one or multiple pages of custom parameters used as the template for your C++ custom operator parameters. Custom parameters order, style, pages... etc will be replicated.

Path Path - The path to which folder the .cpp and .h files will be generated in. If no path is supplied it will use your TouchDesigner project path.

Generate Generate - Pulse to generate the .cpp and .h files. It will overwrite files found at the folder location specified in the Path parameter if any parameters.cpp and / or parameters.h files are already present.


Operator Outputs

  • Output 0 - The generated content of the .h file as a DAT.
  • Output 1 - The generated content of the .cpp file as a DAT.


Palette
Palette • Palette:arcBallCamera • Palette:arcBallGeometry • Palette:audioAnalysis • Palette:audioSet • Palette:battery • Palette:blendModes • Palette:bloom • Palette:camera • Palette:cameraBrowser • Palette:camSchnappr • Palette:changeColor • Palette:changeToColor • Palette:checker • Palette:chromaKey • Palette:colorThreshold • Palette:compareComp • Palette:convolve • Palette:cornerPinSOP • Experimental:Palette:cppParsTemplateGen • Palette:customAttributes • Palette:debugControl • Palette:dent • Palette:depthExtract • Palette:dilate • Palette:equalizer • Palette:feedback • Palette:feedbackEdge • Palette:firmata • Palette:geoPanel • Palette:gestureCapture • Palette:graphPlot • Palette:histogram • Palette:hsvBlur • Palette:imageSearch • Palette:julia • Palette:kantanMapper • Palette:kinectCalibration • Palette:kinectPointcloud • Palette:leapPaint • Palette:lightTunnel • Palette:mandelbrot • Palette:mesh • Palette:monochrome • Palette:motionSense • Palette:moviePlayer • Palette:moviePlaylist • Palette:multiLevel • Palette:multiMix • Palette:noise • Palette:onScreenKeyboard • Palette:opticalFlow • Palette:particlesGpu • Palette:pixelate • Palette:pixelRelocator • Palette:pointGenerator • Palette:pointillize • Palette:pointMerge • Palette:pointRender • Palette:pointRepack • Palette:pointTransform • Palette:pointWeight • Palette:popDialog • Palette:probe • Palette:projectorBlend • Palette:pushPins • Palette:puzzle • Experimental:Palette:quadReproject • Palette:radialBlur • Palette:remotePanel • Palette:reproject • Palette:rgbaBlur • Palette:rgbaDelay • Palette:rgbContrast • Experimental:Palette:sceneChanger • Palette:search • Palette:searchReplace • Palette:sharpen • Palette:softenAlpha • Palette:solarize • Palette:sopRender • Palette:splitter • Palette:stitcher • Palette:stoner • Palette:superFormula • Palette:sweetSpotPreviz • Palette:TDVR • Palette:transitMap • Palette:twirl • Palette:vectorScope • Palette:virtualFile • Palette:waveformMonitor • Palette:webBrowser • Palette:webSvg • Palette:xyScope