def alignmentColor(align): color = alignControl.color(align) obj = objectControl.getFromScene(BACKDROP_OBJECT_NAME, 'info') obj.color = color
def backdropColor(unit): color = alignControl.color(unit['align']) obj = objectControl.getFromScene(BACKDROP_OBJECT_NAME, 'basicInfo') obj.color = color