Skip to content

Instantly share code, notes, and snippets.

@raganmd
Created December 12, 2017 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raganmd/d9003ab7c0735877c5ea7431fc604e16 to your computer and use it in GitHub Desktop.
Save raganmd/d9003ab7c0735877c5ea7431fc604e16 to your computer and use it in GitHub Desktop.
A little dictionary setup for an example of how to use the script 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 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment