-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathParameters.cpp
More file actions
53 lines (41 loc) · 1.47 KB
/
Parameters.cpp
File metadata and controls
53 lines (41 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* Shared Use License: This file is owned by Derivative Inc. (Derivative)
* and can only be used, and/or modified for use, in conjunction with
* Derivative's TouchDesigner software, and only if you are a licensee who has
* accepted Derivative's TouchDesigner license or assignment agreement
* (which also govern the use of this file). You may share or redistribute
* a modified version of this file provided the following conditions are met:
*
* 1. The shared file or redistribution must retain the information set out
* above and this list of conditions.
* 2. Derivative's name (Derivative Inc.) or its trademarks may not be used
* to endorse or promote products derived from this file without specific
* prior written permission from Derivative.
*/
// Parameters.cpp generated using the cppParsTemplateGen Palette Component.
// https://derivative.ca/UserGuide/Palette:cppParsTemplateGen
#include <string>
#include <array>
#include "CPlusPlus_Common.h"
#include "Parameters.h"
#pragma region Evals
const TD::OP_CHOPInput*
Parameters::evalTranslatechop(const TD::OP_Inputs* inputs)
{
return inputs->getParCHOP(TranslatechopName);
}
#pragma endregion
#pragma region Setup
void
Parameters::setup(TD::OP_ParameterManager* manager)
{
{
TD::OP_StringParameter p;
p.name = TranslatechopName;
p.label = TranslatechopLabel;
p.page = "Filter";
p.defaultValue = "";
TD::OP_ParAppendResult res = manager->appendCHOP(p);
assert(res == TD::OP_ParAppendResult::Success);
}
}
#pragma endregion