This should be simple but I can’t seem to figure it out.
Say I have a command to import animation using ATOM, and it reads like this :
file -import -type "atomImport" -ra true -namespace "atomTest2" -options ";;targetTime=1;time=1:12;option=replace;match=hierarchy;;selected=selectedOnly;search=;replace=;prefix=;suffix=;mapFile=F:/- - - Projects/- - iAnimate/Workshop_5_Assignment1/data/;" "C:/Users/Brian/Desktop/atomTest2.atom";
But if I want to script this and I want to be able to dynamically pass in start/end frames to it, how can I achieve that?
I’ve tried this :
int $start=1;
int $end=12;
file -import -type "atomImport" -ra true -namespace "atomTest2" -options ";;targetTime=1;time=$start:$end;option=replace;match=hierarchy;;selected=selectedOnly;search=;replace=;prefix=;suffix=;mapFile=F:/- - - Projects/- - iAnimate/Workshop_5_Assignment1/data/;" "C:/Users/Brian/Desktop/atomTest2.atom";
Which gives me -// Error: line 1: Invalid time unit: $start:$end //
I’ve also tried sending it a string as in string $times=“5:12”;
but that doesn’t work either, I’ve also tried breaking up the quotes :
int $start=1;
int $end=12;
file -import -type "atomImport" -ra true -namespace "atomTest2" -options ";;targetTime=1;time="($start+":"+$end)";option=replace;match=hierarchy;;selected=selectedOnly;search=;replace=;prefix=;suffix=;mapFile=F:/- - - Projects/- - iAnimate/Workshop_5_Assignment1/data/;" "C:/Users/Brian/Desktop/atomTest2.atom";
But that gives me a ‘too many arguments’ error.
I’m sure I’m just missing something obvious here, any help much appreciated, I have a ton of animation to get through and would really like to leverage Atom to automatically drop in cycles at specific points without having to use the ATOM import dialogue to speed things up.
Cheers,
Brian