I know Python and the format for ES Python scripts looks somewhat magical. Whats going on?
Using Python’s powerful introspection abilities, EventScripts treats a module loaded via “es_load” differently than a normal Python module. ES automatically scans the addon for functions and adds them as “blocks” in EventScripts. In addition, event functions are also registered as “events” so they can get event notifications from the addon manager. This is a little too “magical” if you have a huge script with a lot of internal methods you don’t want to expose. Eventually ES will allow you to have granular control of this, but for now we’re focusing on ease of use. You can tell EventScripts not to reference a method in your addon if you prefix it with an underscore. This will indicate to everyone that the function is private.
Related Questions
- It is amazing and somewhat surprising that so much can be going on in this small space in the center of Cuyahoga Falls, Ohio! How can I get more information on both the studio and the CVYB?
- My video looks a little blurry. Whats the best upload format for high quality videos?
- I have just pasted my exercise but it looks different. What is going on?