Skip to main content
Known Participant
November 4, 2024
Question

Plugin advice InDesign tutorial etc

  • November 4, 2024
  • 1 reply
  • 685 views

Hello, 

 

I have looked arround for information regarding making an InDesign plugin which comprises of a user interface panel and some buttons to run scripts. (Yes, the scripts could be run via shortcut, however a formalised pannel would be a nice goal). 

 

I have looked at the documentation and there is and there is a query close to mine here 
https://forums.creativeclouddeveloper.com/t/what-to-create-a-plugin-panel-that-has-multiple-buttons-to-run-scripts-i-have-developed/8014

 

However it was not much help to me. 

 

Any suggestions would be ace. 

 

Best, 

 

Smyth

This topic has been closed for replies.

1 reply

John D Herzog
Inspiring
November 4, 2024

Just to clarify. You are scripting in UXP, correct?

I have done this thing in Illustrator using CEP. I will need to look into my UXP plugins.

John D Herzog
Inspiring
November 4, 2024

For the UXP, what I have done is have all of my external scripts as functions within a javascript file. You can have multiple files, you will just need to do a require and export for each one.

 

So make the buttons in your index.html calling to those functions. Include you main.js in you index.html.

in your header

<script src="main.js"></script>

 

The button will be something like.

<sp-action-button onclick="FunctionName1()" value="FunctionName1">FunctionName1</sp-action-button>
 
In your main.js you will need to add in a requirement.
const {FunctionName1, FunctionName2) = require("./wherefunctionsare.js");
 
In you script files you will need to add this at the bottom.
module.exports = {FunctionName1, FunctionName2}
Known Participant
December 4, 2024
quote

I also believe there is a UI builder for a range of Adobe applications, however I have forgotten the website, unless you had knowledge of it.


By @SmythWharf

 

I wonder if you're referring to this ScriptUI builder:

https://scriptui.joonas.me/

 

I think it can't be used for UXP development, not sure.


Thats the one

 

Re: 

I wonder if you're referring to this ScriptUI builder:

https://scriptui.joonas.me/