Page 1 of 1

Persistent properties on projects

Posted: June 10th, 2005, 7:58 am
by byronnash
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.

Posted: June 13th, 2005, 2:45 pm
by davestewart
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

Posted: June 14th, 2005, 5:02 am
by byronnash
That's a good idea, I'm not sure I was aware of the item comments. I'll check it out, thanks Dave.

Posted: June 14th, 2005, 8:15 am
by davestewart
Glad to be of help, Byron :)