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

Save setting per project

Participant ,
Apr 25, 2017 Apr 25, 2017

Copy link to clipboard

Copied

Hi guys, How can I save setting for script on my project, Like into comment of project? 

TOPICS
Scripting

Views

362

Translate

Translate

Report

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

Enthusiast , Apr 26, 2017 Apr 26, 2017

All project items (app.project.items) visible in the project panel have a .comment property you can read/write, same with all layers in a comp. You'll just need to come up with a system that makes sense for whatever it is you're trying to do. For example, you could have the script add a new folder called "please don't delete me" if it doesn't already exist, and save into that item's comment field. Then when the project is reopened you just search for that item, read the .comment and parse the in

...

Votes

Translate

Translate
Enthusiast ,
Apr 26, 2017 Apr 26, 2017

Copy link to clipboard

Copied

All project items (app.project.items) visible in the project panel have a .comment property you can read/write, same with all layers in a comp. You'll just need to come up with a system that makes sense for whatever it is you're trying to do. For example, you could have the script add a new folder called "please don't delete me" if it doesn't already exist, and save into that item's comment field. Then when the project is reopened you just search for that item, read the .comment and parse the information to retrieve the data.

Votes

Translate

Translate

Report

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
Participant ,
Apr 26, 2017 Apr 26, 2017

Copy link to clipboard

Copied

Thanks for the answer, I asking for a way that I can read/write to "project" comment(or something like this) not "items" comment.

Votes

Translate

Translate

Report

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
Enthusiast ,
Apr 26, 2017 Apr 26, 2017

Copy link to clipboard

Copied

As far as I know, there is no "project" comment. So I was giving you the "something like this" solution.

Votes

Translate

Translate

Report

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
Participant ,
Apr 27, 2017 Apr 27, 2017

Copy link to clipboard

Copied

LATEST

Thanks a lot 🙂

Votes

Translate

Translate

Report

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