This guide will show you how you can bundle a data file with a Dise movie so you can access them from the player. Most datafiles will work, example of these are .json and .txt files.
- Create a text file with the content “Hello world!” and save it, for example in C:\DISEContent\Content\Message.txt
- Create a script file with the content below and save it for example in C:\DISEContent\Content\ShowMessage.py
#pragma language Python.AXScript.2 filename = DISEScript.GetVariable("File") DISEScript.Log("filename " + filename) f = open(filename, "r") contents = f.read() message = "Message is " + contents DISEScript.Log(message) DISEScript.SetVariable("Message", message)
- Composer V1.32.12 or later
- Premium V1.32.12 or later
Only supported on Premium devices