View Full Version : I need to modify this maxscript just a bit :P
09 September 2005, 08:46 PM
I have tried to find the author of this maxscript but it seems that there are several ones who contributed and i´m a bit lost. What the script does is to replace the Isolate selected with a custom one that instead of the common checkbox, changes the color of the timeline. Since I work with the timeline hidden, i would like to be able to see that color change on the border of the viewport. I do not know anything about maxscript, but i think that should be something like changing #timesliderbg for something like #viewportborder or whatever.
Anyone could help me?
The script is located at:
09 September 2005, 11:40 AM
This is pretty straightforward, and I have faith that even you can be a maxscript genius!
open the file macro_IsoSel.mcr from the 3dsmax/7/UI/macroscripts directory.
1- search for the string #timesliderbg and when you find it, copy the entire line and paste it into another new line below.
2- On the new line, replace the text #timesliderbg with #activeViewportBorder
repeat these two steps again and then save the file and hey presto, maxscript genius. It appears twice in the script, once to change it to the isolate colour, and once to change it back to normal.
If you're worried about making a mistake, copy the file first so you have a back-up. If this doesn't work I'll upload it for you.
edit: the border colour doesn't change until you force a screen redraw. The other option is to change the #repainttimebar on the next line to #repaintall, but this causes an unneccessary time lag. Try it and see!
09 September 2005, 11:07 AM
Hey I've been using this now and it's great compared to the normal isolate selection button etc.
Hope you manage to modify the script ok.
09 September 2005, 02:42 PM
I was waiting to arrive at home to test it and answer but i want to thank you for taking the time to help me!
For sure it will work great :)
Thanks a lot!
09 September 2005, 06:09 PM
Finally i found some time to modify the script. I´m not sure it works how it should be :P I have a green color on the active viewport color, and when i activate the isolation it changes to orange, but when i exit the isolation, the green never returns :P I did a backup, but for some reason, my timebar is always orange now, and despite i change its color, when I activate the script, it changes to orange...forever
I tried the repaintall, but as you said, there is a lag that kills me.
Well, i can live with an orange bar... while it is hidden :P
09 September 2005, 09:31 AM
okok, here is the script ;>
at least you gave it a go!
09 September 2005, 02:45 PM
Thanks a lot j_man. I can live with the redraw issue :)
09 September 2005, 02:45 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.