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

Posted

tags:

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

'''
    The Specific class handles the requirements that are specific to a 
    particular job. We separate these functions into two classes as there
    are always cases where a particular venue has a particular requirement
    that doesn't fit with the schema of a larger system. We might find
    that one of these functions can be generalized and pulled into the
    General class, but if you're writing something that's specific to a
    single job or venue, this is the place for that function.
'''

General = mod("generalEXT").General

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

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

        if vals:
            op('table1')[1, 2]  = "'moviefilein2 moviefilein1'"

        else:
            op('table1')[1, 2]  = "'moviefilein1 moviefilein2'"

        return

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

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

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

python touchdesigner的Python-switch语句最佳

python touchdesigner的Python-switch语句,更好

python touchdesigner的Python-switch语句好

python touchdesigner的Python-switch语句最差