Persistent properties on projects

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
byronnash
Posts: 321
Joined: July 7th, 2004, 2:30 pm
Location: Charlotte, NC
Contact:

Is there any way to attach a property or value to a project? I would like to set a variable using the folderGetDialog(), and then store that folder location somehow within a project. That way, the next time the user runs the same script on the same project, they don't have to choose the folder again. I was wondering if you could store the info in a solid or comp or something. That way, as long as the user keeps that item around, the script can find it and extract the info for them. I would like to avoid using the AE prefs because they would get jammed up with each project having a value stored there.
davestewart
Posts: 114
Joined: March 10th, 2005, 5:50 am
Location: London, UK
Contact:

I recently worked on some scripts for a particularly complicated production pipeline (that wouldn't change from project to project) and I used item comments and a getItemByComment function to return particular folders.

It's certainly not bulletproof, but maybe you could try something similar?

Cheers,
Dave
byronnash
Posts: 321
Joined: July 7th, 2004, 2:30 pm
Location: Charlotte, NC
Contact:

That's a good idea, I'm not sure I was aware of the item comments. I'll check it out, thanks Dave.
davestewart
Posts: 114
Joined: March 10th, 2005, 5:50 am
Location: London, UK
Contact:

Glad to be of help, Byron :)
Post Reply