Skip to content

Commit

Permalink
Add studio tools launch logic for photoshop
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitConnan authored and ClementHector committed Feb 7, 2022
1 parent aee4f0d commit 07ab742
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
32 changes: 22 additions & 10 deletions openpype/hosts/photoshop/api/extension/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
}
button {width: 100%;}
</style>

<style>
button {width: 100%;}
body {margin:0; padding:0; height: 100%;}
html {height: 100%;}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">
</script>

<script type=text/javascript>
$(function() {
$("a#workfiles-button").bind("click", function() {
Expand All @@ -31,7 +31,7 @@
});
});
</script>

<script type=text/javascript>
$(function() {
$("a#creator-button").bind("click", function() {
Expand All @@ -42,7 +42,7 @@
});
});
</script>

<script type=text/javascript>
$(function() {
$("a#loader-button").bind("click", function() {
Expand All @@ -53,7 +53,7 @@
});
});
</script>

<script type=text/javascript>
$(function() {
$("a#publish-button").bind("click", function() {
Expand All @@ -64,7 +64,18 @@
});
});
</script>


<script type=text/javascript>
$(function() {
$("a#studio-tools-button").bind("click", function() {
RPC.call('Photoshop.studio_tools_route').then(function (data) {
}, function (error) {
alert(error);
});
});
});
</script>

<script type=text/javascript>
$(function() {
$("a#sceneinventory-button").bind("click", function() {
Expand All @@ -86,7 +97,7 @@
});
});
</script>

<script type=text/javascript>
$(function() {
$("a#experimental-button").bind("click", function() {
Expand All @@ -102,16 +113,17 @@
<script type="text/javascript" src="./client/wsrpc.js"></script>
<script type="text/javascript" src="./client/CSInterface.js"></script>
<script type="text/javascript" src="./client/loglevel.min.js"></script>

<!-- helper library for better debugging of .jsx check its license! -->
<script type="text/javascript" src="./host/JSX.js"></script>

<script type="text/javascript" src="./client/client.js"></script>

<a href=# id=workfiles-button><button>Workfiles...</button></a>
<a href=# id=creator-button><button>Create...</button></a>
<a href=# id=loader-button><button>Load...</button></a>
<a href=# id=publish-button><button>Publish...</button></a>
<a href=# id=studio-tools-button><button>Studio Tools...</button></a>
<a href=# id=sceneinventory-button><button>Manage...</button></a>
<a href=# id=subsetmanager-button><button>Subset Manager...</button></a>
<a href=# id=experimental-button><button>Experimental Tools...</button></a>
Expand Down
3 changes: 3 additions & 0 deletions openpype/hosts/photoshop/api/launch_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ async def loader_route(self):
async def publish_route(self):
self._tool_route("publish")

async def studio_tools_route(self):
self._tool_route("studio_tools")

async def sceneinventory_route(self):
self._tool_route("sceneinventory")

Expand Down

0 comments on commit 07ab742

Please sign in to comment.