This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| total=text.sourceText; | |
| function formatNumber(total) { | |
| return total.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,') | |
| } | |
| formatNumber(total) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| start=parseInt(thisLayer.text.sourceText="0"); | |
| end=parseInt(text.sourceText); | |
| val=Math.round(easeOut(time, startTime, 2,start, end)); | |
| s=""+ val; | |
| if (s.length > 6){ | |
| s.substr(0, s.length -6) + "," + (s.substr(1, s.length -4) + "," + s.substr(-3)); | |
| }else{ | |
| if (s.length > 3){ | |
| s.substr(0, s.length -3) + "," + s.substr(-3); | |
| }else{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| start=parseInt(thisLayer.text.sourceText="0"); | |
| end=parseInt(text.sourceText); | |
| val=Math.round(easeOut(time, startTime, 2,start, end)); | |
| s=""+ val; | |
| if (s.length > 3){ | |
| s.substr(0, s.length -3) + "," + s.substr(-3); | |
| }else{ | |
| s | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| start=parseInt(thisLayer.text.sourceText="0"); | |
| end=parseInt(text.sourceText); | |
| val=Math.round(easeOut(time, startTime, 4,start, end)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var examples = [ | |
| { | |
| 'text' : thisComp.layer("Data-Driven-Sample.csv")("Data")("Outline")("Text Data")("Text Data 0"), | |
| 'number' : parseInt(thisComp.layer("Data-Driven-Sample.csv")("Data")("Outline")("Number Data")("Number Data 0")) | |
| }, | |
| { | |
| 'text' : thisComp.layer("Data-Driven-Sample.csv")("Data")("Outline")("Text Data")("Text Data 1"), | |
| 'number' : parseInt(thisComp.layer("Data-Driven-Sample.csv")("Data")("Outline")("Number Data")("Number Data 1")) | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| values = []; | |
| for(i=0;i<=thisComp.layer("Data-Driven-Sample.csv")("Data")("Number of Rows")-1;i++) { | |
| values.push(thisComp.layer("Data-Driven-Sample.csv")("Data")("Outline")("Number Data")("Number Data " + i).value); | |
| } values.sort((a, b) => a - b); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| values = []; | |
| for(i=0;i<=thisComp.layer("Data-Driven-Sample.csv")("Data")("Number of Rows")-1;i++) { | |
| values.push(thisComp.layer("Data-Driven-Sample.csv")("Data")("Outline")("Number Data")("Number Data " + i).value); | |
| } values.sort((a, b) => b - a); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| colorText=thisComp.layer("Data-Sample.csv")("Data")("Outline")("Color Data")("Color Data 0").toString(); | |
| hexToRgb(colorText); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rows =thisComp.layer("Data-Sample.csv")("Data")("Number of Rows")+1; | |
| last_val= 0; | |
| for(i=0;i<rows;i++) { if(thisComp.layer("Data-Sample.csv")("Data")("Outline")("Number Data")("Number Data " + i)) | |
| { | |
| Math.max(last_val= thisComp.layer("Data-Sample.csv")("Data")("Outline")("Number Data")("Number Data " + i)); } } last_val; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| n=Math.round(thisComp.layer("Data-Sample.csv")("Data")("Number of Rows")); | |
| values = [];for(i=n-1;i<=n-1;i++) | |
| { values.push(thisComp.layer("Data-Sample.csv")("Data")("Outline")("Text Data")("Text Data " + i).value); } | |
| values; |
NewerOlder