python touchdesigner-通用代码分割-generalEXT-示例

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python touchdesigner-通用代码分割-generalEXT-示例相关的知识,希望对你有一定的参考价值。

'''
    The MessageParser and General classes are intended to be the 
    classes that persist from project to project. The General class
    here takes care of fucntions that are universal to all projects. If 
    the function in question applies to only a specific project,
    then it fits better in the venue extension.
'''

messageParser = mod('messageParserEXT').MessageParser

class General(messageParser):
    def __init__(self, my_op):
        messageParser.__init__(self, my_op)
        print("General init")
        return

    def Change_switch(self, message):
        vals        = message.get('vals')

        op('constant1').par.value0 = vals

        return

以上是关于python touchdesigner-通用代码分割-generalEXT-示例的主要内容,如果未能解决你的问题,请参考以下文章

python 一个TouchDesigner代码段,用于查看如何启动另一个触摸过程。

python 一个sudo代码块,可以显示TouchDesigner扩展的首选格式和文档字符串文档的示例。

python touchdesigner的Python-switch语句最佳

python touchdesigner的Python-switch语句,更好

python touchdesigner的Python-switch语句好

python touchdesigner的Python-switch语句最差