예제 #1
0
def button_ok_click():
    global source_layer_id, chosen_radius, chosen_offset
    layer.select_id(source_layer_id)
    layer.set_registry("stroke-radius", chosen_radius)
    layer.set_registry("stroke-layer-id", stroke_layer_id)
    image.set_registry("stroke-radius", chosen_radius)
    image.do_end()
    exit()
예제 #2
0
def button_ok_click():
    global source_layer_id, chosen_radius, chosen_angle
    layer.select_id(source_layer_id)
    layer.set_registry(REGISTRY_NAME + "-radius", chosen_radius)
    layer.set_registry(REGISTRY_NAME + "-angle", chosen_angle)
    layer.set_registry(REGISTRY_NAME + "-layer-id", shadow_layer_id)
    image.set_registry(REGISTRY_NAME + "-radius", chosen_radius)
    image.set_registry(REGISTRY_NAME + "-angle", chosen_angle)
    image.do_end()
    exit()