def get_system(): if "RV2.system" not in compas_rhino.sc.sticky: form = TextForm('Initialise the plugin first!', 'RV2') form.show() return None return compas_rhino.sc.sticky["RV2.system"]
def get_proxy(): if "RV2.proxy" not in sc.sticky: form = TextForm('Initialise the plugin first!', 'RV2') form.show() return None return sc.sticky["RV2.proxy"]
def display_text(text, title='Text', width=800, height=600): if isinstance(text, (list, tuple)): text = '{0}'.format(System.Environment.NewLine).join(text) form = TextForm(text, title, width, height) return form.show()
def get_system(): if "3GS.system" not in sc.sticky: form = TextForm('Initialise the plugin first!', '3GS') form.show() return None return sc.sticky["3GS.system"]