• Visit Rebornbuddy
  • Extending Plugin Functionality

    Discussion in 'Community Developer Forum' started by Terv, Sep 24, 2016.

    1. Terv

      Terv New Member

      Aug 31, 2015
      Likes Received:
      Trophy Points:
      Hi All,

      I'm trying to find a way to add functionality to other plugins (ExBuddy to be precise). I've created my own directory under Plugins and a class to contain the functionality:

      namespace SomeNS
          public static class SomeClass
              public static bool Until(double ezHour)
                  // run until we hit parameter time
      This gets compiled and is fine until I try to use the functionality in ExBuddy's Fish tag:

      <Fish Condition="SomeNS.SomeClass.Until(4)"> <!-- run until 4am -->
      Once it gets to this in the profile I end up with the exception:

      IronPython.Runtime.UnboundNameException: global name 'MyNS' is not defined
      While I could put the code inside ExBuddy and within it's namespace (this does work) I'd like to keep the functionality outside of ExBuddy so that I don't have to patch it after re-installs (SoC is a good thing!).

      Is there something I'm missing to register my namespace/class to make it usable across other plugins, or is there some from of sandboxing going on and this is not a possibility?

      Thanks in advance!

    Share This Page