op('text_switch').run(0)
index = args[0]
op('switch1').par.index = index
op('Save').run(delayFrames = 60 )
op('Save').run(arg1, arg2, delayFrames = 60 )
See https://docs.derivative.ca/Td_Module
# There is a component that has 'MAT' as its global shortcut name.
pre = 'op.' + op('parameter1')['Matpath', 1] + '.'
o = op('null1')
o.par.top.expr = pre + 'op("' + o.name + '")'
# result: op.MAT.op('null1')
op('container1').openViewer()
op('container1').closeViewer()
a = 200
b = 33
if b > a:
print("b is greater than a")
elif a == b:
print("a and b are equal")
else:
print("a is greater than b")
# In a parameter on an operator.
1280 if parent() == '/' else parent().par.w
opValues = op('select1') // CHOP
opText = op('text1')
len = opTable.numChans
for i in range(len):
opText.run(opValues[i].name, opValues[i])
op('constant1).par.Value0.mode = ParMode.CONSTANT
op('constant1).par.Value0.mode = ParMode.EXPRESSION
op('constant1).par.Value0.mode = ParMode.EXPORT
opTable = op('TargetComp')
compPath = "Parameters/"
len = opTable.numRows
for i in range(len):
op(compPath + opTable[i, 0]).outputConnectors[0].disconnect()
op(compPath + opTable[i, 0]).outputConnectors[0].connect(op(compPath + 'merge1'))
# e.g. Noise -> Channel -> End
op('sopto1').numSamples/me.time.rate
# x
math.cos(absTime.seconds / 10) * 10
# y
math.sin(absTime.seconds / 10) * 10
"%.2f" % op('select1')['depth3']
# bypass
op('name').bypass = True
op('name').bypass = False
# cooking
op('name').allowCooking = True
op('name').allowCooking = False
# 1_hello -> hello
re.sub(r'[0-9]{1,2}_', "", me.name)
# Remove strings
targetName = str(name).replace('.tox','')
# From
*
# To
op('label').par.Widgetlabel + '*'
Add a Null operator
alt + n
# Destroy op
c = ownerComp.children
for o in c:
if targetName in o.name:
o.destroy()
# Export Movie Dialog
ui.openExportMovie("/project1/null1")