Firstly, I'm very new to MEL scripting. To cut to my question, I'm looking for a way to set currentTime (current frame + 1). I researched, couldn't find, and I ask for help.
If you care to see why I ask for this, it's because I'm trying to write a script that will:
-set keyframe
-unhide selected object
-increase current frame by 1
-set keyframe
-hide selected object
So far as a prototype, I've come up with:
global proc tl_ratt()
{
string $selected[] = `ls -sl` ;
setAttr ($selected[0] +".visibility") 1;
}
tl_ratt ;
(Keep in mind I didn't even write the code myself, I found someone elses and inserted the "setAttr ($selected[0] +".visibility") 1;" snippet)