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

Is it possible to dock a script if i don't launch it from Window tab?

Contributor ,
Jan 27, 2020 Jan 27, 2020

Hey everyone. 

There is a script called rd_ScriptBrowser (http://www.redefinery.com/ae/rd_scripts/). It works well but there is an issue. When i run scripts from it, even if the scripts in ScriptUI Folder, they are not dockable. 

I can dock them if i run them from Window tab, but i can't dock them when i use ScriptBrowser. 

I was wondering if this is something i can change with different code. Help appreciated 🙂 

TOPICS
How to , Scripting , SDK , User interface or workspaces
2.4K
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

Advocate , Jan 27, 2020 Jan 27, 2020

Unfortunatelly, that's not possible. 

Scripts have different scopes when launched from Window -> ... or File -> Scripts etc. That's just a nature of it, and that's how AE works, and there's no way around this.

Translate
Community Expert ,
Jan 27, 2020 Jan 27, 2020

actually RD script is dockable if they are inside ScriptUI Folder can I know which script you test?

 

dock.gif

 

 

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
Contributor ,
Jan 27, 2020 Jan 27, 2020

Hey OussK, maybe i couldn't explain well 🙂 

I am talking about docking any script that i run through rd_scriptbrowser. 

Let's say i have Script.jsx in my ScriptUI Folder. I can dock it if i run it through Window--> Script.jsx. If i run it through rd_ScriptBrowser tho, it is just a floated window. 

I am wondering if there is a code to make it dock just like Window --> Scrip.jsx.

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 ,
Jan 27, 2020 Jan 27, 2020

Ah Ok now I understand, I don't think it's possible 

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
Advocate ,
Jan 27, 2020 Jan 27, 2020

Unfortunatelly, that's not possible. 

Scripts have different scopes when launched from Window -> ... or File -> Scripts etc. That's just a nature of it, and that's how AE works, and there's no way around this.

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
Contributor ,
Jan 27, 2020 Jan 27, 2020

Well, i understand 😕 

One more question then. Is it possible to refresh Window tab with a Script? I mean, as a part of the Script that acts automatically when i trigger something in the code. 

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
Advocate ,
Jan 27, 2020 Jan 27, 2020

Nope:)

Scripts are loaded on app-launch.

I see where you're going with this - you'll have to restart AE:)

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
Contributor ,
Jan 27, 2020 Jan 27, 2020

Yeah, looks like you saw it:) 

Thanks for the answers anyway:) 

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
Advocate ,
Jan 27, 2020 Jan 27, 2020

Any reason you need to launch scripts as a dockable panel?

Jsut wondering the use case.

When I develop script, I always run them as floating windows. I only test my scripts as dockable window as a last step, once all the functionality is coded.

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
Contributor ,
Jan 27, 2020 Jan 27, 2020
LATEST

Well, i wanted to learn about scripting. I feel lack of a script browser while using AE for a while so i thought i can create something according to my taste and learn about scripting on the way. My question was one of the features, and well... goodbye feature:D 

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