mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #921 from pypeclub/3.0/fix/PS-create-from-layer
Photoshop fix - create called on single layer
This commit is contained in:
commit
9377e9127c
1 changed files with 6 additions and 2 deletions
|
|
@ -135,13 +135,17 @@ class PhotoshopServerStub():
|
|||
def group_selected_layers(self, name):
|
||||
"""
|
||||
Group selected layers into new LayerSet (eg. group)
|
||||
Returns: <json representation of Layer>
|
||||
Returns: (Layer)
|
||||
"""
|
||||
res = self.websocketserver.call(self.client.call
|
||||
('Photoshop.group_selected_layers',
|
||||
name=name)
|
||||
)
|
||||
return self._to_records(res)
|
||||
res = self._to_records(res)
|
||||
|
||||
if res:
|
||||
return res.pop()
|
||||
raise ValueError("No group record returned")
|
||||
|
||||
def get_selected_layers(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue