remove arg
This commit is contained in:
+1
-3
@@ -16,13 +16,11 @@ class RandomSize:
|
||||
RETURN_TYPES = ("INT","INT")
|
||||
RETURN_NAMES = ("width","height")
|
||||
FUNCTION = "func"
|
||||
def func(self,size:str):
|
||||
def func(self:str):
|
||||
sizes = read_config('sizes')
|
||||
rand_obj = random.random.Random()
|
||||
idx = rand_obj.randint(0, len(sizes))
|
||||
print(idx)
|
||||
size = sizes[idx]
|
||||
print(size)
|
||||
x, y = [int(v) for v in size.split('x')]
|
||||
return (x,y)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user