[Closed] Floating Window Scripts
Hey, I’m no maxScripter, but i was just wondering how i could put scripts that let’s say i downloaded from www.scriptspot.com and I wanted to put them all in a floating window. I’ve tried using VisualMaxScript to make buttons and such, but that didn’t really work out for me, being that I couldn’t open them or run it or anything.
I just want a floating window, much like I saw in the thread about hard-surface modeling (scripts float on the side of screen with custom buttons, colors, etc.)
By the way, I’m not talking about floating toolbars. The ones i am referring to are floating windows and stuff. If you guys can’t figure out how to do it, then that’s fine, but i would really like to know.
Thanks so much!
-Gerd
Will,
To be able to do this, you will need to open each script and manually combine all of them in one script. But it is not as straightforward as you might think. Firstly they should be modified so they are positioned appropriately in the floater.
Then you need to place the handlers inside but it might cause problems if there are dialog specific calls, etc.
Light
Try saving the results of the visual maxscript editor as a maxscript file (its one of the options). Then you can open the code from this and just write the functions that control what the buttons do. Very straightforward.
I'm sorry, but I have no idea what you just said. LOVE ORIONFLAME THOUGH!!!
(that was one of the scripts i wanted to put into a window, hehe)
I have no idea how I can write functions, lol. Oh well, I'll try your approach I guess...thanks
-Gerd
Will,
It is not straightforward. For example copying these lines from new to combined would cause a problem.
(
rollout new “”
(
button v01 “”
on button v01 pressed do destroyDialog new
)
rollout combined ""
(
button v01 ""
on button v01 pressed do destroyDialog new
)
)
You also need to make sure no script interferes with other local variables.
Thanks,
Light
Hey Light,
Actually, the floating window I was referring to was in one of your OFlame videos…you had all of these rollouts and such…maybe there’s a thread here that gives the code?!?
Thanks
-Gerd
Actually, I have no idea what you just mentioned. Can’t you just post the code that you used to make it with OrionFlame?
If you can’t, then that’s fine, i understand, but if I need to buy OrionFlame to get this feature, I probably will, lol.
-Gerd
Sorry I can’t expose LOF Panel’s code due to obvious reasons.
LOF Panel is really a huge piece of user interface, so I am not sure which scripts you want to combine it with? I would recommend you to use it as is, while making a single UI for the rest of your scripts.
Light