Home Technical Talk

Adding extra information in the max viewport

Hey all, I've been forced to work on a lot smaller screen then I'm used to so I started working in the expert mode. But now I do notice that I miss some of the feedback I can get from the main toolbar. I know it is possible to get the main toolbar shown in expert mode as well but I would like to approach it differently.
By adding plain old text in the viewport which gives the feedback needed. (and which can also be hidden such as the statistics.)

8zrbc4.jpg

Where the numbers indicate which mode they are in linked to the place they are placed in when you get the dropdown in the main toolbar.

So my question is, is this or something similar possible to get in max? Is it standard in max (and does almost nobody feel the urge to use it that way) or is there a script which does this. Or is it even possible due scripting ?

Replies

  • BeatKitano
    Offline / Send Message
    BeatKitano polycounter lvl 16
    You can do it via scripting, i have it for somethings (like show end results, currently selected modifier etc), but it's clearly poorly written and likely to get you error messages (no crash reported on my side though, but I have my workflow and others may not have my luck)

    I can post the end result one as it's not too buggy (it's a binary state so not much place for errors).

    It's a toggle, in green end result activated, white not activated. BTW, it's based on numerous sources on the web, I can't really remember who though, I think there may be some SyncViewS's code in there :)

    HERE IT IS:

    fn showERStatus=
    (
    gw.setTransform(Matrix3 1)



    local p3TextPos = [1000,1020,0]


    if showEndResult==True then
    (
    gw.hText p3TextPos "End Result" color:green
    gw.enlargeUpdateRect #whole
    gw.updateScreen()
    )
    else(
    gw.hText p3TextPos "End Result" color:white
    gw.enlargeUpdateRect #whole
    gw.updateScreen()
    )


    )



    if endresultHUD == undefined then
    (
    global global_count = 0
    fn endresultHUD = showERStatus()
    registerRedrawViewsCallback endresultHUD

    )
    else
    (
    unRegisterRedrawViewsCallback endresultHUD
    endresultHUD= undefined
    f = box2 5 15 100 37
    gw.clearScreen f
    gw.updateScreen()
    )
  • LosPescados
    Willing to give a bit more feedback on what which line does ? Or a link where I can look into it ?
    Because I have just done some mere scripting before and don't really understand what this code does.
  • Xoliul
    Offline / Send Message
    Xoliul polycounter lvl 16
    I think you're mostly confused by his parameter naming, it's really simple code. Also, "fn" means he's defining a function. The rest of the stuff you can just look up in the maxscript reference.
Sign In or Register to comment.