Search found 81 matches
- February 20th, 2016, 4:06 am
- Forum: Scripts Discussion
- Topic: Checkboxes and a button in the palette window
- Replies: 2
- Views: 9370
Re: Checkboxes and a button in the palette window
The button1.onClick must collect the current checkboxes values: var myWin = new Window("palette", "My Window", undefined); myWin.orientation = "row"; var groupOne = myWin.add("group", undefined, "GroupOne"); groupOne.orientation = "column";...
- November 7th, 2015, 1:56 am
- Forum: Scripts Discussion
- Topic: Copy Effect with Parameters
- Replies: 4
- Views: 41934
Re: Copy Effect with Parameters
It's not easy, and even if you write a decent function that does it, it will frequently generate errors due to properties for which script cannot read/set values, like curves, histogram, etc: all properties that have propertyValueType: CUSTOM_VALUE or NO_VALUE. A workaround it to use the menu comman...
- November 5th, 2015, 8:41 am
- Forum: Scripts Discussion
- Topic: ScriptUI Panel update or redraw graphics
- Replies: 3
- Views: 12152
Re: ScriptUI Panel update or redraw graphics
Ok cool.
Be aware that with this "method", onDraw will be called twice, so i'd rather put the ctr increment part somewhere else than in the onDraw function itself.
Be aware that with this "method", onDraw will be called twice, so i'd rather put the ctr increment part somewhere else than in the onDraw function itself.
- November 3rd, 2015, 10:27 am
- Forum: Scripts Discussion
- Topic: ScriptUI Panel update or redraw graphics
- Replies: 3
- Views: 12152
Re: ScriptUI Panel update or redraw graphics
You can try this: win.ctl_button1.onClick = function(){ var s = win.ctl_group1.size; win.ctl_group1.size=[s[0], s[1]+1]; win.ctl_group1.size=[s[0], s[1]]; }; For me it works, but it might not for you. If you want more info, check the Adobe scripting forum for InDesign with keywords "onDraw"...
- November 2nd, 2015, 2:36 pm
- Forum: Scripts Discussion
- Topic: edittext scrollable
- Replies: 1
- Views: 7640
Re: edittext scrollable
I couldnt make it work too, but an edit text with properties: readonly true works, and has more or less the same effect
.add ('edittext', undefined,'',{multiline: true, readonly: true});
Xavier.
.add ('edittext', undefined,'',{multiline: true, readonly: true});
Xavier.
- October 22nd, 2015, 6:29 am
- Forum: Scripts Discussion
- Topic: How to check if an effect is missing
- Replies: 6
- Views: 16366
Re: How to check if an effect is missing
Yes you're right it doesnt work.
I also tried Dan's idea but there are many entries without a category in the app.effects array so it cannot be a test.
But it's possible to do it as you pointed out.
Maybe that info is hidding somewhere in the app.project.xmpPacket. Who knows.
I also tried Dan's idea but there are many entries without a category in the app.effects array so it cannot be a test.
But it's possible to do it as you pointed out.
Maybe that info is hidding somewhere in the app.project.xmpPacket. Who knows.
- October 17th, 2015, 11:13 am
- Forum: Scripts Discussion
- Topic: How to check if an effect is missing
- Replies: 6
- Views: 16366
Re: How to check if an effect is missing
app.effects is an array of all available effects. Each app.effects is an object {displayName:[string], matchName:[string]}. I suppose that a missing effects won't be in that list. You can also try to pick some AV Layer somewhere in the project and question myLayer.effect.canAddProperty(theEffectMatc...
- October 6th, 2015, 8:23 am
- Forum: Expression Discussion
- Topic: Colour Control Key Frames
- Replies: 8
- Views: 19209
Re: Colour Control Key Frames
HI, this is another way using markers. If you have the possibility to use markers (ie they are not busy for something else) i think it's better, it allows to queue colors in arbitrary order, like Color 1 - Color 2 - Color 1 - Color 6 - Color 4, etc Markers comment must be 1, or 2, or 3, etc (ie numb...
- September 26th, 2015, 7:49 am
- Forum: Expression Discussion
- Topic: Colour Control Key Frames
- Replies: 8
- Views: 19209
Re: Colour Control Key Frames
No there is no such function. In the notations above to get a step behaviour that would be just : val1 That is, replace the line with the linear thing with: if (myConditionForStepBehaviour){ val1; } else{ linear(time, key(idx1).time, key(idx2).time, val1, val2); }; where myConditionForStepBehaviour ...
- September 23rd, 2015, 3:41 am
- Forum: Expression Discussion
- Topic: Colour Control Key Frames
- Replies: 8
- Views: 19209
Re: Colour Control Key Frames
Ah ok. This should work: if (numKeys<1){ value; } else{ idx1 = nearestKey(time).index; if (key(idx1).time>time) idx1--; idx2 = idx1+1; if (idx1<1) idx1=1 else if (numKeys<idx2) idx2=numKeys; val1 = effect("Color " + idx1)("Color").value; val2 = effect("Color " + idx2)(&...
- September 22nd, 2015, 11:23 pm
- Forum: Expression Discussion
- Topic: Colour Control Key Frames
- Replies: 8
- Views: 19209
Re: Colour Control Key Frames
The things on left hand side are defined by the keyframes and cannot be overwritten, at least not explicitely as you wrote it.
Beside, the left hand side is a time (number), while the right hand side is a color (array of 3+1 numbers), so it's also hard to understand what you want to achieve!
Xavier.
Beside, the left hand side is a time (number), while the right hand side is a color (array of 3+1 numbers), so it's also hard to understand what you want to achieve!
Xavier.
- September 8th, 2015, 12:56 am
- Forum: Scripts Discussion
- Topic: Moving Objects Around in the Project Panel
- Replies: 6
- Views: 13284
Re: Moving Objects Around in the Project Panel
Move the source of the layer:
Code: Select all
layerRG.source.parentFolder = newFolder;
- September 7th, 2015, 1:22 am
- Forum: Scripts Discussion
- Topic: Moving Objects Around in the Project Panel
- Replies: 6
- Views: 13284
Re: Moving Objects Around in the Project Panel
Try running over items in reverse order : for (i=myFolder.numItems; i>0; i--)
Xavier.
Xavier.
- July 22nd, 2015, 4:07 am
- Forum: Script requests
- Topic: Reset transform values, Remove effects of selected layers
- Replies: 4
- Views: 22279
Re: Reset transform values, Remove effects of selected layer
Hi again. Here is a sample script that would, on all selected layers, 1- remove all effects; 2- reset all transform properties in the following way: remove expressions, remove keys, reset value to default. I can't garanty that it covers all cases (there are many variants for cameras, lights, null la...
- July 22nd, 2015, 2:16 am
- Forum: Script requests
- Topic: Reset transform values, Remove effects of selected layers
- Replies: 4
- Views: 22279
Re: Reset transform values, Remove effects of selected layer
One problem is, scripts don't have access to properties default values, hence can't reset properties.
If you know which properties are concerned, and know their default values, a script doing this is possible though.
Xavier.
If you know which properties are concerned, and know their default values, a script doing this is possible though.
Xavier.