python TD-的脚本-DAT-设置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python TD-的脚本-DAT-设置相关的知识,希望对你有一定的参考价值。

# it's important here to know that 
# pars need to match their correct
# parameter name in order for this to
# work correctly.

# in that same vein, the relative paths
# are based on the location of the script
# op that's being used

# finally, for this to work correctly, you'll
# need to re-run this dat in order to place
# new values into storage

attr = {
    "container_ui" :{ 
        "w" : 500,
        "h" : 1080,
        "alignorder" : 0
    },
    "container_led_display": {
        "w" : 400,
        "h" : 300,
        "alignorder" : 1
    },
    "..":{
        "align" : 1,
        "justifyv" : 1
    }
}

parent().store( 'set_up_attr', attr )

以上是关于python TD-的脚本-DAT-设置的主要内容,如果未能解决你的问题,请参考以下文章

python 一个小字典设置,以获取如何使用脚本DAT的示例。

python td-script-dat-tips-and-tricks.py

python 用于导出表的通用脚本DAT格式的入门传递

为什么文件扩展名显示py而不是dat

在cmd命令行执行python脚本出现错误提示

python TD-文件格式脚本