Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Best way to add a text input parameter to an effect plugin?

Community Beginner ,
Jan 22, 2016 Jan 22, 2016

I'm trying to write a plugin that will generate formatted text (among other things) according to certain rules. The thing is, how do I get the text input in there... do I have to use PF_Param_ARBITRARY_DATA for this or is there an easier way? Also, if I were to create it using arbitrary data, could I support Unicode characters in that input field?

Thanks!

TOPICS
SDK
1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Jan 22, 2016 Jan 22, 2016

Unfortunately, After Effects (and therefore also the SDK) do not offer native controls for inputting text strings.

There are several ways to work around that.

- One - like you already mentioned - is coding and drawing your own parameter interface using custom ARB. This is however very time-consuming

- Another option is having a button parameter that when clicked open a native OS dialog box with the text controls. This however requires knowledge of operating system specific APIs and is not cross-pla

...
Translate
Guest
Jan 22, 2016 Jan 22, 2016

Unfortunately, After Effects (and therefore also the SDK) do not offer native controls for inputting text strings.

There are several ways to work around that.

- One - like you already mentioned - is coding and drawing your own parameter interface using custom ARB. This is however very time-consuming

- Another option is having a button parameter that when clicked open a native OS dialog box with the text controls. This however requires knowledge of operating system specific APIs and is not cross-platform, unless you use a middleware like JUCE or GTK or wxWidgets.

- Third and probably easiest option: again a button parameter, but this time (using AEGP_ExecuteScript) it launches a native Adobe JS scripting UI dialog (which is cross-platform and way easier to implement). The result of the text input can be sent back to the plugin via the last return command in the script.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 22, 2016 Jan 22, 2016

Thanks Toby,

looks like the scripted way seems to be the most straight forward (although maybe not the nicest looking) way forward. Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 26, 2016 Jan 26, 2016

So, it looks like I will have to go the tough route after all... has anyone done this yet? Implementing a text field parameter? Any further help would be much appreciated...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 25, 2018 Oct 25, 2018

Did you ever end up figuring out how to make a custom text field for input?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 25, 2018 Oct 25, 2018
LATEST

tobi suggested pretty much all the possible solutions. of which, #3 is

pretty simple to pull off.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines