Turbo Squid
Turbo SquidProductsSearchShopping CartMemberForumsCompanySupport
gmax Community and Support : maxscript : UI won't keep the macroscript
Forum: Posts From:
bobbysoon
New Poster
6 Posts
UI won't keep the macroscript
Posted 25-Jan-2008 8:11 AM

If I drop the macroscript on gmax and customize the ui, it works, but it's not there on restart, despite saving menu and .cui changes. Any idea what my major malfunction might be?

macroScript    SearchReplaceNames
    category:"_"
    buttontext:"Rename selected..."
    tooltip:"Search and replace text in selected names"


(
    rollout    rename_rollout    "Rename Selected"    Width:175 Height:175
    (
        Group ""
        (
            edittext    search_name    "old"
            edittext    replacement    "new"
        )
        Group ""
        (
            button    ok_button    "ok"
        )
        on    ok_button    pressed    do
        (
            if    search_name.text    !=    ""    then    (
                search_length    =    search_name.text.count
                for    i    in    selection    do    (
                    find_index    =    findString i.name search_name.text
                    if find_index>0    then    i.name =    replace    i.name    find_index    search_length    replacement.text
                )
            )
            DestroyDialog    rename_rollout
        )
    )

    CreateDialog    rename_rollout)
Browser_ice
Moderator
3998 Posts
1 Product
RE: UI won't keep the macroscript
Posted 01-Feb-2008 12:06 PM

Did you create this maxscript using the GMAX Maxscript guide ?
If you downloaded it, wasn't mentioned it was for GMAX ?
Items per page