mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-14 20:30:06 +01:00
helper functions for getting variables from ManipulatePlugin into other parts of recur code
This commit is contained in:
@@ -520,3 +520,11 @@ class PluginCollection(object):
|
||||
# For each sub directory, apply the walk_package method recursively
|
||||
for child_pkg in child_pkgs:
|
||||
self.walk_package(package + '.' + child_pkg)"""
|
||||
|
||||
|
||||
## helpers
|
||||
def get_variable(self, varname, default=0.0):
|
||||
from plugins.ManipulatePlugin import ManipulatePlugin
|
||||
plugin = self.get_plugins(ManipulatePlugin)
|
||||
if plugin is not None:
|
||||
return plugin[0].get_variable(varname, default)
|
||||
|
||||
Reference in New Issue
Block a user