for example idf like to change the
Using the tokenize command, is there a way to always cast the last resulting substrings of a string in a variable?
to a tips section where i would also outline use of 3 auxilliary procs namely arrayLast, arrayFirst, arrayN wich usualy makes scripting ad hoc things like this easier and dont just apply to tokenize
I mean
$ls=ls -sl -tl 1;
getAttr ($list[]+".translate");
id do
getAttr (arrayFirst(ls -sl -tl 1)+".translate");
wich saves a variable use and some mem this is actualy usefull becayseuse maya realy realy often returns a array ewen tough you are sure its only one item and then going forward on that wich again gives you a variable and so on and so on... Also it makes for a more general proc if used in conjunction with the tokenize altough granted still 2 lines of code thats essentialy slightly less efficent but cuts amount of commands to use down.