PDA

View Full Version : To hide the timeline (request)


jampoz
11-27-2005, 01:35 AM
Hello guys, I never got into maxscripting, guess actionscripts in Flash is enough for me

Some of you once posted a small code, it was cool, I could put it onto a UI button and it would show/hide the timeline, pretty fast and handy
Actually that was two buttons, the other could hide the bar below the timeline (where camera/viewport controls are) and it was cool too but I didn't use it as much as the timeline one

Cool thing was Max did remember that and kept the timeline hidden everytime I started it, so basically 'til I don't need to animate it's good to keep it hidden
Now, I could do it using the preferences but it was handy to have a button doing that, I own a dual-head I have room to spare

Now if anybody could show me that code again please, that would be terrific, and guess this time I'll save it in Notepad (HD broke and I lost all those neat things I had in Max)

eek
11-27-2005, 01:41 AM
This is an interface to turn on/off the timeslider.



It is accessed in the following way:


<void>timeSlider.setVisible<Boolean>

<bool>timeSlider.isVisible



In MAXScript, this is always sticky across sessions.









eek

jampoz
11-27-2005, 01:48 AM
Alright, wait, I go to New Script and paste your code, then I shift-drag onto the UI to create a button for it but I get this:

-- Syntax error: at <, expected <factor>
-- In line: <void>timeSlider.setVisible<Boolean>


I'm pretty sure I took your code the wrong way, sorry, again I know nothing about Max script and take this chance to thank you for your time!

PS: I'm using Max 7

Light
11-27-2005, 01:57 AM
Giampaolo,

Maybe this does what you need: timeslider.setVisible false




Light

jampoz
11-27-2005, 02:01 AM
Great it did hide the top one, still shows the frames bar, can see the 0 - 5 - 10 - 15... frame numbers

Problem is it doesn't show it back when I click it again


EDIT: I changed it into TRUE and made a second button so now I can show it back, that's great, but how to hide the frames bar that is below the one we just hidden?

Light
11-27-2005, 02:49 AM
I think what you need is this:

trackbar.visible = not trackbar.visible
timeslider.setVisible (not timeslider.isVisible())




Light

jampoz
11-27-2005, 03:15 AM
Light
Eek
You guys are great!

Now the script works perfectly, hope somebody else is going to use it 'cause it's really useful
Thank you so much!

Light
11-27-2005, 03:33 AM
Yeah actually I am using this along with another for toggling status panel.




Light

jampoz
11-27-2005, 06:16 AM
Can you post that too please?

I guess I should put statuspanel or something like that instead of timeline/trackbar but I know Max will uninstall itself if I try playing with its code :)

Light
11-27-2005, 12:27 PM
Here you go: statusPanel.visible = not statusPanel.visible




Light

CGTalk Moderation
11-27-2005, 12:27 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.