function exposeDrawings(){
MessageBox.information(“Exposed!”);
try{
scene.beginUndoRedoAccum(“Expose Drawings”);
var curFrame = frame.current();
var numSelLayers = Timeline.numLayerSel;
for ( var i = 0; i < numSelLayers; i++ ){
if ( Timeline.selIsColumn(i ) ){
var nomeC = Timeline.selToColumn(i);
}
var tipo = column.type(nomeC);
if (tipo == "DRAWING"){
var lista = column.getDrawingTimings(nomeC);
var k = 0;
var limite = curFrame + lista.length;
for (j=curFrame;j<limite; j++){
column.setEntry(nomeC, 1, j, lista[k]);
k++;
}
}
}
scene.endUndoRedoAccum();
}catch(e){
MessageBox.information(e);
}
}
… I don’t know why the indents aren’t posting, I’ve wrapped it in a code tag. :C Sorry, this is less helpful than I had envisioned.
var _find = findLE.text;
var _replace = replaceLE.text;
var n = selection.numberOfNodesSelected();
for (i = 0; i < n; ++i)
{
var selNode = selection.selectedNode(i);
var nodeNamePath= selNode.split("/");
var nodeName = nodeNamePath[nodeNamePath.length - 1];
var newNodeName = nodeName.replace(_find, _replace);
var columnId = node.linkedColumn(selNode,“DRAWING.ELEMENT”);
var elementKey = column.getElementIdOfDrawing(columnId);
var newColumnName = newNodeName;
What would you think about a whole separate forum section for scripting (scripts, script modules and expressions) allowing to concentrate all informationon about that topic in one rubric?
Hello there! I am looking to build a script that would allow me to modify the properties of x-axis position of multiple layers. Please see this forum to see what I mean if confused:
Hello, I’m sorry to disturb you. I want to download the exposed rawings script, but the syntax error is displayed. I don’t know why. I want to ask you what happened