def register_circler(plugin):
    inputnames = ['input', 'scale', 'frames']
    reg, dereg = create_node(NT_DEPENDSNODE, 'circler', 0x60005, [
        float_input('input', 'in'),
        float_input('scale', 'sc', default=10.0),
        float_input('frames', 'fr', default=48.0),
        float_output('outSine', 'so', affectors=inputnames, transformer=sin),
        float_output(
            'outCosine', 'co', affectors=inputnames, transformer=cosine),
    ])
    reg(plugin)
    _deregister_funcs.append(dereg)
示例#2
0
def register_otherdemo(plugin):
    reg, dereg = nodefactory.create_node(
        nodefactory.NT_DEPENDSNODE, 'otherdemo', 0x60006, [
            nodefactory.create_attrmaker(nodefactory.A_COLOR, 'color', 'c'),
            nodefactory.create_attrmaker(nodefactory.A_ENUM,
                                         'enum',
                                         'e',
                                         default=1,
                                         fields=[['field1', 1], ['field2', 2]
                                                 ]),
            nodefactory.create_attrmaker(
                nodefactory.A_STRING, 'string', 's', default='hi'),
        ])
    reg(plugin)
    _deregister_funcs.append(dereg)
def register_otherdemo(plugin):
    reg, dereg = nodefactory.create_node(
        nodefactory.NT_DEPENDSNODE, 'otherdemo', 0x60006,
        [
            nodefactory.create_attrmaker(
                nodefactory.A_COLOR, 'color', 'c'),
            nodefactory.create_attrmaker(
                nodefactory.A_ENUM, 'enum', 'e', default=1,
                fields=[
                    ['field1', 1],
                    ['field2', 2]]),
            nodefactory.create_attrmaker(
                nodefactory.A_STRING, 'string', 's', default='hi'),
        ])
    reg(plugin)
    _deregister_funcs.append(dereg)
def register_circler(plugin):
    inputnames = ['input', 'scale', 'frames']
    reg, dereg = create_node(
        NT_DEPENDSNODE, 'circler', 0x60005,
        [
            float_input('input', 'in'),
            float_input('scale', 'sc', default=10.0),
            float_input('frames', 'fr', default=48.0),

            float_output(
                'outSine', 'so',
                affectors=inputnames,
                transformer=sin),
            float_output(
                'outCosine', 'co',
                affectors=inputnames,
                transformer=cosine),
        ])
    reg(plugin)
    _deregister_funcs.append(dereg)
示例#5
0
def register_transformdemo(plugin):
    reg, dereg = nodefactory.create_node(nodefactory.NT_TRANSFORMNODE,
                                         'transformdemo', 0x60007, [])
    reg(plugin)
    _deregister_funcs.append(dereg)
def register_transformdemo(plugin):
    reg, dereg = nodefactory.create_node(
        nodefactory.NT_TRANSFORMNODE, 'transformdemo', 0x60007, [])
    reg(plugin)
    _deregister_funcs.append(dereg)