@@ -18,7 +18,7 @@ def send(command: str, **keywords):
if keywords is None:
print(chr(27) + command)
else:
- print(chr(27) + command + chr(29) + str(keywords))
+ print(chr(27) + command + chr(29) + repr(keywords))
if command[-1] == '?':
return parse_str(input(''))
@@ -84,6 +84,9 @@ def blur(name=BLUR_FAST, radius=None, validate=True): #radius: float or (x,y)
radius_x = radius[0]
radius_y = radius[1]
radius = None
+ else:
+ radius_x = None
+ radius_y = None
command.send("Filter", Name=name, Radius=radius, RadiusX=radius_x, RadiusY=radius_y, Validate=validate)
def blur_motion(distance=None, angle=None, oriented=None, validate=True): #oriented: bool
@@ -98,8 +98,8 @@ def get_registry(identifier):
def set_registry(identifier, value):
if value == None:
value = ""
- else:
- value = str(value)
+ elif isinstance(value, str):
+ value = repr(value)
command.send("LayerSetRegistry", Identifier=identifier, Value=value)
def remove():