Copy link to clipboard
Copied
Hi guys, How can I save setting for script on my project, Like into comment of project?
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
...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.
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.
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.
Copy link to clipboard
Copied
Thanks a lot 🙂