Page 1 of 1
Script to move in timeline to frame Zero
Posted: Sun Jun 27, 2021 8:33 am
by negroclarito
Hi everyone.
I want to find a script to move in timeline to frame Zero.
I know there is a mynd tools plugin that copies the frames without going to frame zero.
The one I need is a button that transports me to frame zero and it can work in 13.5. I think there was one before, but I can't find it.
Thank you
Re: Script to move in timeline to frame Zero
Posted: Sun Jun 27, 2021 8:57 am
by Greenlaw
You can use Design Mode for that. The shortcut is Shift-Control D. This sends you to frame 0. Use the shortcut again and it sends you back to the animation frame you came from.
In MQC, there's a Design Mode button than can be click-toggled with a pen or mouse.
Re: Script to move in timeline to frame Zero
Posted: Sun Jun 27, 2021 12:10 pm
by Hoptoad
Ooo, I like this shortcut. Thanks for posting.
Gems like this is why I browse the forum.
Re: Script to move in timeline to frame Zero
Posted: Sun Jun 27, 2021 11:16 pm
by Daxel
I think that you can alternatively use control + space to switch to design mode.
Re: Script to move in timeline to frame Zero
Posted: Mon Jun 28, 2021 4:51 am
by SimplSam
negroclarito wrote: ↑Sun Jun 27, 2021 8:33 am
..
The one I need is a button that transports me to frame zero and it can work in 13.5.
..
I thought I would knock up a simple Go to frame Zero script for those tablet warriors who don't like keyboards.
ZIP Package (with Icon):
https://github.com/SimplSam/moho-go-zer ... o_zero.zip
Code: Select all
-- **************************************************
-- Tool to emulate Design mode keyboard toggle
-- Go to frame 0 and back
-- **************************************************
ScriptName = "SS_GoZero"
-- **************************************************
-- General information about this script #510628
-- **************************************************
SS_GoZero = {}
function SS_GoZero:Name()
return 'Go to Frame Zero'
end
function SS_GoZero:Version()
return '1.0'
end
function SS_GoZero:UILabel()
return 'Go to Frame Zero'
end
function SS_GoZero:Creator()
return 'SimplSam'
end
function SS_GoZero:Description()
return "Toggle timeline to Frame 0 (Design mode) and back"
end
-- **************************************************
-- Is Relevant / Is Enabled
-- **************************************************
function SS_GoZero:IsRelevant(moho)
return true
end
function SS_GoZero:IsEnabled(moho)
return true
end
-- **************************************************
-- The guts of this script
-- **************************************************
function SS_GoZero:Run(moho)
if (moho.frame ~= 0) then
SS_GoZero.lastFrame = moho.frame
moho:SetCurFrame(0)
else
if (SS_GoZero.lastFrame) then
moho:SetCurFrame(SS_GoZero.lastFrame)
end
end
end
Re: Script to move in timeline to frame Zero
Posted: Mon Jun 28, 2021 2:56 pm
by negroclarito
Greenlaw wrote: ↑Sun Jun 27, 2021 8:57 am
You can use Design Mode for that. The shortcut is Shift-Control D. This sends you to frame 0. Use the shortcut again and it sends you back to the animation frame you came from.
In MQC, there's a Design Mode button than can be click-toggled with a pen or mouse.
Yes... It's working. PERFECT!!!. This is what I need. This can save a lot of time.
Thank you

Re: Script to move in timeline to frame Zero
Posted: Mon Jun 28, 2021 3:00 pm
by negroclarito
SimplSam wrote: ↑Mon Jun 28, 2021 4:51 am
negroclarito wrote: ↑Sun Jun 27, 2021 8:33 am
..
The one I need is a button that transports me to frame zero and it can work in 13.5.
..
I thought I would knock up a simple Go to frame Zero script for those tablet warriors who don't like keyboards.
ZIP Package (with Icon):
https://github.com/SimplSam/moho-go-zer ... o_zero.zip
Code: Select all
-- **************************************************
-- Tool to emulate Design mode keyboard toggle
-- Go to frame 0 and back
-- **************************************************
ScriptName = "SS_GoZero"
-- **************************************************
-- General information about this script #510628
-- **************************************************
SS_GoZero = {}
function SS_GoZero:Name()
return 'Go to Frame Zero'
end
function SS_GoZero:Version()
return '1.0'
end
function SS_GoZero:UILabel()
return 'Go to Frame Zero'
end
function SS_GoZero:Creator()
return 'SimplSam'
end
function SS_GoZero:Description()
return "Toggle timeline to Frame 0 (Design mode) and back"
end
-- **************************************************
-- Is Relevant / Is Enabled
-- **************************************************
function SS_GoZero:IsRelevant(moho)
return true
end
function SS_GoZero:IsEnabled(moho)
return true
end
-- **************************************************
-- The guts of this script
-- **************************************************
function SS_GoZero:Run(moho)
if (moho.frame ~= 0) then
SS_GoZero.lastFrame = moho.frame
moho:SetCurFrame(0)
else
if (SS_GoZero.lastFrame) then
moho:SetCurFrame(SS_GoZero.lastFrame)
end
end
end
The shortcut Greenlaw told me is working perfect. I also want to try also this script.
Thank you
