Expressions/Scripts/Presets

Search found 10 matches

by HTN3D
Wed Apr 12, 2017 8:45 am
Forum: General Scripts Library
Topic: UI.slider not updating the viewer
Replies: 0
Views: 372

UI.slider not updating the viewer

I am working on a script that has a ui.slider that controls object movement by using onChanging Listener  =>  Expression Control/Slider Control =>   Expression => objProperty. But I am having trouble updating the viewer while moving the ui.slider , The viewer not reflecting the changes until I relea...
by HTN3D
Mon Mar 13, 2017 8:55 am
Forum: General Scripts Library
Topic: AE is crashing
Replies: 4
Views: 520

Re: AE is crashing

the problem finally solved and I would like to share what it was.  After I inspected every single function in the script I was suspicious about one function that creates the GUI. I used Mathias Möhl approach but it contains some statements I wasn't sure if they were necessary to have. I tried to sea...
by HTN3D
Sat Mar 11, 2017 9:26 pm
Forum: General Scripts Library
Topic: AE is crashing
Replies: 4
Views: 520

Re: AE is crashing

Thanks Runegan for your response! I am using #include and I don't think the comp resolution or duration is the problem.  I ran many tests and I think the problem occur in the objects that I am passing by the function arguments. I am not sure but I think they're kind of not releasing the memory after...
by HTN3D
Sat Mar 11, 2017 4:16 am
Forum: General Scripts Library
Topic: AE is crashing
Replies: 4
Views: 520

Re: AE is crashing

Update.. I tried to test the script on Windows and it's same problem but the difference is showing legitimate message which says: "After Effects: Memory allocation of 12.3 GB exceeds internal limits. Decrease the memory requirements for the rendering of this frame. (12802). For more information...
by HTN3D
Sat Mar 11, 2017 4:02 am
Forum: General Scripts Library
Topic: AE is crashing
Replies: 4
Views: 520

AE is crashing

I am writing a script with interface that creates a comps contain text and shape layers. I have been testing the script by creating one comp every time I testing it as I am writing the code  and everything was normal until I accidentally tried to create multiple comps then it crashed. I check everyt...
by HTN3D
Thu Mar 09, 2017 9:54 am
Forum: General Scripts Library
Topic: Create sort of Metadata in AE project
Replies: 8
Views: 550

Re: Create sort of Metadata in AE project

Thanks Ben! I am testing it and it's woking the way how I exactly need.
 this is how i am testing it:

var x=app.project.activeItem;
x.comment="Writing Info";
alert ("reading the Info: " + x.comment);


Thank you so much Ben
by HTN3D
Tue Mar 07, 2017 1:09 pm
Forum: General Scripts Library
Topic: Create sort of Metadata in AE project
Replies: 8
Views: 550

Re: Create sort of Metadata in AE project

Thank you so much Runegan for your help and advice. it's always useful for someone like me who hasn't done any serious coding since the college days (which is a decade ago) to learn coding strategies to build a complex script. And this is what I am trying to[size=100] learn as i am building my fairl...
by HTN3D
Tue Mar 07, 2017 9:16 am
Forum: General Scripts Library
Topic: Create sort of Metadata in AE project
Replies: 8
Views: 550

Re: Create sort of Metadata in AE project

it makes sense! using a global variable is not the safest way, specially if the user using other scripts (I wasn't aware of that!). But anyway I've been trying to encapsulate my variables in objects as much as possible to keep the argument list short when I call the main functions. But sometimes I e...
by HTN3D
Mon Mar 06, 2017 2:20 pm
Forum: General Scripts Library
Topic: Create sort of Metadata in AE project
Replies: 8
Views: 550

Re: Create sort of Metadata in AE project

Thank you so much Runegan for your very rich and useful respond! I went through all the options and I learned something from each one.  I would like to use the fifth method which is store the data in objects and use the item ID as the key but without using "Var" which is something I didn't...
by HTN3D
Mon Mar 06, 2017 10:25 am
Forum: General Scripts Library
Topic: Create sort of Metadata in AE project
Replies: 8
Views: 550

Create sort of Metadata in AE project

I am woking on a script that creates different types of comps. And I am searching for a way to store some data for each comp somewhere in the project or in the comp itself. this data act sort of Metadata, So I can use it to recall the comps and read some comp's properties like color, size, number of...