Difference between revisions of "Experimental:Palette:cppParsTemplateGen"

From Derivative
Jump to navigation Jump to search
m
m
 
Line 7: Line 7:
 
|long=The CppParsTemplateGen COMP can be used to quickly generate parameters.cpp and parameters.h files and kickstart your [[Custom Operators|Custom Operator]] projects. The parameters.cpp and parameters.h files are used to define the [[Custom Parameters]] on Custom OPs.
 
|long=The CppParsTemplateGen COMP can be used to quickly generate parameters.cpp and parameters.h files and kickstart your [[Custom Operators|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++ project (in Visual Studio, right click your project and click Add Existing Item or type Shift+Alt+A) and after importing the files where necessary, call the <code>setup(manager)</code> 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.
+
To use, add the class and header to your C++ project (in Visual Studio, right click your project and click Add Existing Item or type Shift+Alt+A) and after importing the files where necessary, call the <code>setup(OP_ParameterManager* manager)</code> function within the overriden function <code>setupParameters(OP_ParameterManager* manager, void*)</code> of your main class. 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.
 
     }}
 
     }}
 
{{ParameterPage
 
{{ParameterPage

Latest revision as of 18:14, 11 March 2021

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++ project (in Visual Studio, right click your project and click Add Existing Item or type Shift+Alt+A) and after importing the files where necessary, call the setup(OP_ParameterManager* manager) function within the overriden function setupParameters(OP_ParameterManager* manager, void*) of your main class. 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