Martin Jean-sébastien
Forum Replies Created
-
Martin Jean-sébastien
May 17, 2018 at 11:06 am in reply to: Photoshop Temp File Filling up my Startup Drive (Can’t Continue Work)Hello,
I’ve got the same problem since so many years…. I didn’t find any solutions on the web!
Help us please!! -
app.beginUndoGroup("Set opacity mask");for(var j=0;j<app.project.activeItem.selectedLayers.length;j++){
var myLayer = app.project.activeItem.selectedLayers[j];
var myPath = myLayer.property("Masks");
var numMasks = myPath.numProperties;
for(var i=1;i<numMasks+1;i++){
if(myPath.property(i).name.replace(/Mask /g, "")==myLayer.index) myPath.property(i).maskOpacity.setValue(100);
else{
myPath.property(i).remove();
numMasks = numMasks-1;
i--;
}
}
}app.endUndoGroup();
-
app.beginUndoGroup("Delete mask");for(var j=0;j<app.project.activeItem.selectedLayers.length;j++){
var myLayer = app.project.activeItem.selectedLayers[j];
var myPath = myLayer.property("Masks");
var numMasks = myPath.numProperties;
for(var i=1;i<numMasks+1;i++){
if(myPath.property(i).name.replace(/Mask /g, "")==myLayer.index){
myPath.property(i).maskOpacity.setValue(0);
}
else{
myPath.property(i).remove();
numMasks = numMasks-1;
}
}
}app.endUndoGroup();
-
Here it is
app.beginUndoGroup("Delete mask");for(var j=0;j<app.project.activeItem.selectedLayers.length;j++){
var myLayer = app.project.activeItem.selectedLayers[j];
var myPath = myLayer.property("Masks");
var numMasks = myPath.numProperties;
for(var i=1;i<numMasks+1;i++){
if(myPath.property(i).name.replace(/Mask /g, "")==myLayer.index){
myPath.property(i).remove();
numMasks = numMasks-1;
}
else myPath.property(i).maskOpacity.setValue(0);
}
}app.endUndoGroup();
-
Oh i try this
app.beginUndoGroup("Set opacity mask");for(var j=0;j<app.project.activeItem.selectedLayers.length;j++){
var myLayer = app.project.activeItem.selectedLayers[j];
var myPath = myLayer.property("Masks");
var numMasks = myPath.numProperties;
for(var i=1;i<numMasks+1;i++){
if(myPath.property(i).name.replace(/Mask /g, "")==myLayer.index) myPath.property(i).maskOpacity.setValue(100);
else myPath.property(i).maskOpacity.setValue(0);
}
}app.endUndoGroup();
-
Unknown issue of copy/paste here, type this :
app.beginUndoGroup(“Set opacity mask”);
for(var j=0;j
-
Hello,
You have to select all the layers where you want to apply this script :app.beginUndoGroup(“Set opacity mask”);
for(var j=0;j
-
Yes the XML text is loaded in a TextBox in my script. I tried some HTML format (br or n or b)
to make some part of the text bold or italic but it does not work. -
Yes, thank you Dan, I didnt know that it was an array! Thanks!
-
Can you tell me since which version of after effects we can use this expression?
Thanks!