Categories
code Tips and Guides

Part- 3 Illustrator Scripting Looping the shape within layer

Below is couple of functions that takes parameter of active layer and process individual element to change color. function iterateOverGroup(groupCoreItem,colorIs){ for (var ai = 0; ai < groupCoreItem.pathItems.length; ai++) { colorShape(groupCoreItem.pathItems[ai],colorIs); } for (var gi = 0; gi <groupCoreItem.groupItems.length; gi++) { iterateOverGroup(groupCoreItem.groupItems[gi],colorIs); } for (var ci = 0; ci <groupCoreItem.compoundPathItems.length; ci++) { var compoundPath = […]

Categories
Tips and Guides

Part- 1 Illustrator Scripting opening files in path selected

Below is the script to loop through opened files as user select the folder var dir = Folder.selectDialog(“Select location of files?”); var files = dir.getFiles(“*.ai”); // .eps IS THE EXTENSION OF FILES TO READ dir=dir.fsName; Below is the script a that can be used to loop through files from the selected folder above for(var f […]

Categories
Teaching course Tips and Guides

LMC – Little Man Computer Program – List largest

Here is  a program that reads three values as input and output these numbers in order from largest to smallest. INP STA 91 INP STA 92 INP STA 93 LDA 92 SUB 91 BRP STEP2 LDA 92 STA 99   LDA 91   STA 92 LDA 99 STA 91 STEP2 LDA 93 SUB 92 BRP […]

Categories
Tips and Guides

Installing iface702 

Setting up iface 702 : Wifi Attendance system Face recognition Finger print recognition …      

Categories
Tips and Guides

Steps for Ruby on rails installation on windows 10 [64 bit]

Following are the Steps for setting Ruby on Rails on windows 10 :  Goto http://railsinstaller.org/en  Download Installer for windows, at the moment its Ruby 2.2 installer Install and select github option in installer. If there is error in terminal after installation (in messages) update git from git-scm.com overright folder C:/RailsInstaller/Git *while installing git-scm Check the Option while […]