- Posts: 88
- Joined: Wed Sep 02, 2015 12:06 pm
Take a look at this example from the templates folder
- Code: Select all
{
Tools = ordered() {
Text1_1 = TextPlus {
Inputs = {
Width = Input { Value = 64, },
Height = Input { Value = 64, },
Center = Input { Value = { 0.5, 0.596153846153846, }, },
Size = Input { Value = 1.4, },
Font = Input { Value = "Arial", },
StyledText = Input {
SourceOp = "TextScramble1",
Source = "ScrambledText",
},
Style = Input { Value = "Bold", },
ManualFontKerningPlacement = Input {
Value = StyledText {
Array = {
},
Value = "",
},
},
Red1 = Input { Value = 0.290105814860636, },
Blue1 = Input { Value = 0.115911111111111, },
Alpha1 = Input { Value = 0.6, },
ShadingGradient1 = Input {
Value = Gradient {
Colors = {
[0] = { 0, 0, 0, 1, },
[1] = { 1, 1, 1, 1, },
},
},
},
RenderToDPTFile = Input { Disabled = true, },
DPTType = Input { Disabled = true, },
DPTResolution = Input { Disabled = true, },
},
ViewInfo = OperatorInfo { Pos = { 745.201, 0.455444, }, },
},
TextScramble1 = TextScramble {
CtrlWZoom = false,
Inputs = {
Randomness = Input { Value = 1, },
InputText = Input { Value = "a", },
},
},
pSpawn1 = pSpawn {
ID = 14,
Inputs = {
Number = Input { Value = 0.5, },
Lifespan = Input { Value = 30, },
VelocityControls = Input { Value = 1, },
VelocityTransfer = Input { Value = 0, },
RotationControls = Input { Value = 1, },
AlwaysFaceCamera = Input { Value = 0, },
Input = Input {
SourceOp = "pEmitter1_1",
Source = "Output",
},
Style = Input { Value = FuID { "ParticleStyleBitmap", }, },
["ParticleStyle.ColorOverLife"] = Input {
Value = Gradient {
Colors = {
[0] = { 1, 1, 1, 1, },
},
},
},
["ParticleStyle.SizeControls"] = Input { Value = 1, },
["ParticleStyle.Size"] = Input { Value = 0.05, },
["ParticleStyle.SizeOverLife"] = Input {
SourceOp = "pSpawn1SizeoverLife",
Source = "Value",
},
["ParticleStyle.FadeControls"] = Input { Value = 1, },
["ParticleStyle.FadeOut"] = Input { Value = 0.106383, },
["ParticleStyle.BlurOverLife"] = Input {
SourceOp = "pSpawn1BluroverLife2D",
Source = "Value",
},
["ParticleStyleBitmap.Animate"] = Input { Value = 2, },
["ParticleStyleBitmap.DropToolsHere"] = Input {
SourceOp = "Text1_1",
Source = "Output",
},
},
ViewInfo = OperatorInfo { Pos = { 1020.2, 99.4554, }, },
},
pSpawn1SizeoverLife = LUTBezier {
KeyColorSplines = {
[0] = {
[0] = { 0.5, RH = { 0.333333333333333, 0.5, }, Flags = { Linear = true, }, },
[1] = { 0.5, LH = { 0.666666666666667, 0.5, }, Flags = { Linear = true, }, },
},
},
SplineColor = { Red = 192, Green = 128, Blue = 64, },
NameSet = true,
},
pSpawn1BluroverLife2D = LUTBezier {
KeyColorSplines = {
[0] = {
[0] = { 0.5, RH = { 0.333333333333333, 0.5, }, Flags = { Linear = true, }, },
[1] = { 0.5, LH = { 0.666666666666667, 0.5, }, Flags = { Linear = true, }, },
},
},
SplineColor = { Red = 192, Green = 128, Blue = 64, },
NameSet = true,
},
pEmitter1_1 = pEmitter {
ID = 17,
Inputs = {
Number = Input { Value = 30, },
NumberVariance = Input { Value = 10, },
Lifespan = Input { Value = 75, },
LifespanVariance = Input { Value = 50, },
VelocityControls = Input { Value = 1, },
Velocity = Input { Value = 0.3, },
Angle = Input { Value = -90, },
RotationControls = Input { Value = 1, },
AlwaysFaceCamera = Input { Value = 0, },
Style = Input { Value = FuID { "ParticleStyleBitmap", }, },
Region = Input { Value = FuID { "CubeRgn", }, },
["ParticleStyle.ColorOverLife"] = Input {
Value = Gradient {
Colors = {
[0] = { 1, 1, 1, 1, },
},
},
},
["ParticleStyle.SizeControls"] = Input { Value = 1, },
["ParticleStyle.Size"] = Input { Value = 0.05, },
["ParticleStyle.SizeOverLife"] = Input {
SourceOp = "pEmitter1SizeoverLife_1",
Source = "Value",
},
["ParticleStyle.BlurOverLife"] = Input {
SourceOp = "pEmitter1BluroverLife2D_1",
Source = "Value",
},
["ParticleStyleBitmap.Animate"] = Input { Value = 1, },
["ParticleStyleBitmap.DropToolsHere"] = Input {
SourceOp = "Text1_1",
Source = "Output",
},
["CubeRgn.Width"] = Input { Value = 10, },
["CubeRgn.Height"] = Input { Value = 5, },
["CubeRgn.Depth"] = Input { Value = 10, },
},
ViewInfo = OperatorInfo { Pos = { 910.201, 99.4554, }, },
},
pEmitter1SizeoverLife_1 = LUTBezier {
KeyColorSplines = {
[0] = {
[0] = { 0.5, RH = { 0.333333333333333, 0.5, }, Flags = { Linear = true, }, },
[1] = { 0.5, LH = { 0.666666666666667, 0.5, }, Flags = { Linear = true, }, },
},
},
SplineColor = { Red = 192, Green = 128, Blue = 64, },
},
pEmitter1BluroverLife2D_1 = LUTBezier {
KeyColorSplines = {
[0] = {
[0] = { 0.5, RH = { 0.333333333333333, 0.5, }, Flags = { Linear = true, }, },
[1] = { 0.5, LH = { 0.666666666666667, 0.5, }, Flags = { Linear = true, }, },
},
},
SplineColor = { Red = 192, Green = 128, Blue = 64, },
},
pRender1_1 = pRender {
Inputs = {
["_MotionBlurWarning"] = Input { Disabled = true, },
Width = Input { Value = 2048, },
Height = Input { Value = 1556, },
OutputMode = Input { Disabled = true, },
IntegrationMethod = Input { Value = FuID { "RK4", }, },
["MaterialID.MaterialID"] = Input { Value = 2, },
["ObjectID.ObjectID"] = Input { Value = 2, },
Input = Input {
SourceOp = "pSpawn1",
Source = "Output",
},
},
ViewInfo = OperatorInfo { Pos = { 1130.2, 99.4554, }, },
},
Camera3D1 = Camera3D {
Inputs = {
["Transform3DOp.Translate.Z"] = Input {
SourceOp = "Camera3D1ZOffset",
Source = "Value",
},
AoV = Input { Value = 24.3265863475745, },
["Stereo.Mode"] = Input { Value = FuID { "OffAxis", }, },
["SurfacePlaneInputs.ObjectID.ObjectID"] = Input { Value = 3, },
["MtlStdInputs.MaterialID"] = Input { Value = 3, },
},
ViewInfo = OperatorInfo { Pos = { 1130.2, 165.455, }, },
},
Camera3D1ZOffset = BezierSpline {
SplineColor = { Red = 254, Green = 56, Blue = 46, },
NameSet = true,
KeyFrames = {
[0] = { 5, RH = { 133.333333333333, 3.33333333333333, }, Flags = { Linear = true, }, },
[400] = { 0, LH = { 266.666666666667, 1.66666666666667, }, Flags = { Linear = true, }, },
},
},
Merge3D1_1 = Merge3D {
Inputs = {
SceneInput1 = Input {
SourceOp = "pRender1_1",
Source = "Output",
},
SceneInput2 = Input {
SourceOp = "Camera3D1",
Source = "Output",
},
},
ViewInfo = OperatorInfo { Pos = { 1240.2, 165.455, }, },
},
Renderer3D1 = Renderer3D {
CtrlWZoom = false,
Inputs = {
Width = Input { Value = 1280, },
Height = Input { Value = 720, },
SceneInput = Input {
SourceOp = "Merge3D1_1",
Source = "Output",
},
},
ViewInfo = OperatorInfo { Pos = { 1350.2, 165.455, }, },
},
},
}
Here we have a text tool scrambling letters, and the particle system picks each letter and holds that letter as the particle.