|
|
@ -20,6 +20,7 @@ from PyHSPlasma import * |
|
|
|
import time |
|
|
|
import time |
|
|
|
|
|
|
|
|
|
|
|
from ..exporter import ExportError |
|
|
|
from ..exporter import ExportError |
|
|
|
|
|
|
|
from ..korlib import replace_python2_identifier |
|
|
|
|
|
|
|
|
|
|
|
class PlasmaNodeBase: |
|
|
|
class PlasmaNodeBase: |
|
|
|
def generate_notify_msg(self, exporter, so, socket_id, idname=None): |
|
|
|
def generate_notify_msg(self, exporter, so, socket_id, idname=None): |
|
|
@ -44,14 +45,15 @@ class PlasmaNodeBase: |
|
|
|
if single: |
|
|
|
if single: |
|
|
|
name = bl.name if bl is not None else so.key.name |
|
|
|
name = bl.name if bl is not None else so.key.name |
|
|
|
if suffix: |
|
|
|
if suffix: |
|
|
|
return "{}_{}_{}_{}".format(name, self.id_data.name, self.name, suffix) |
|
|
|
working_name = "{}_{}_{}_{}".format(name, self.id_data.name, self.name, suffix) |
|
|
|
else: |
|
|
|
else: |
|
|
|
return "{}_{}_{}".format(name, self.id_data.name, self.name) |
|
|
|
working_name = "{}_{}_{}".format(name, self.id_data.name, self.name) |
|
|
|
else: |
|
|
|
else: |
|
|
|
if suffix: |
|
|
|
if suffix: |
|
|
|
return "{}_{}_{}".format(self.id_data.name, self.name, suffix) |
|
|
|
working_name = "{}_{}_{}".format(self.id_data.name, self.name, suffix) |
|
|
|
else: |
|
|
|
else: |
|
|
|
return "{}_{}".format(self.id_data.name, self.name) |
|
|
|
working_name = "{}_{}".format(self.id_data.name, self.name) |
|
|
|
|
|
|
|
return replace_python2_identifier(working_name) |
|
|
|
|
|
|
|
|
|
|
|
def draw_label(self): |
|
|
|
def draw_label(self): |
|
|
|
if hasattr(self, "pl_label_attr") and self.hide: |
|
|
|
if hasattr(self, "pl_label_attr") and self.hide: |
|
|
|