Renaming a series of nodes with a foreach loop and opname.
Dynamic scripting in Hscript.
Date Created:Friday December 29th, 2006 03:41 AM
Date Modified:Friday August 01st, 2008 01:31 PM
//USING FOREACH WITH OPNAME /* using (`run("ls")`) we are telling hscript show the output of running hscript with the run expression. The (`run("ls")`) lets the foreach loop set $z to the name of the operator, for use when renaming. */ cd img/img1 set y = 0 foreach z (`run("ls")`) set y = `$y+1` opname $z pic$y end