Forum Groups
  All forums
    Help & Feedback
      Questions
      Work in progress
      Finished Art
      Non-Max related
    Community
      Offtopic
      News
    Hardware
    Photography


Featured Threads
  inspiration alert!!!
(37 replies)
  Indespensible MaxScripts, Plugins and 3rd Party Tools
(37 replies)
  The allmighty FREE Resources Thread !
(17 replies)
  spam alert!!!
(4886 replies)
  Maxforums member photo gallery index
(114 replies)
  Maxforums Member Tutorials
(89 replies)
  three cheers to maxforums...
(240 replies)
  101 Things you didnt know in Max...
(198 replies)
  A Face tutorial from MDB101 :D
(95 replies)
  Maxforums.org Members Gallery
(516 replies)
  SON OF POST YOURSELF
(637 replies)
  Dub's Maxscript Tutorial Index
(119 replies)

Maxunderground news unavailable

Information box pop up
show user profile  reeves1984
Hey guys I swear I've seen this before, but do you know how/if you can set something so when a user opens a scene a scene information box popups to tell them some info/warning like 'don't screw up this scene please'



--
Simon Reeves


www.simonreeves.com - VFX Artist & Blog
twitter


www.analogstudio.co.uk <-- I work here

read 403 times
2/10/2012 12:43:30 PM (last edit: 2/10/2012 12:43:30 PM)
show user profile  Nik Clark
http://www.nikclark.com/scripts/load_notice/index.htm

Here you go mate.



read 399 times
2/10/2012 12:52:58 PM (last edit: 2/10/2012 12:52:58 PM)
show user profile  Nik Clark
Hang on a minute and I'll give you the version that doesn't have my stupid installer on it.




read 398 times
2/10/2012 12:53:35 PM (last edit: 2/10/2012 12:53:35 PM)
show user profile  reeves1984
heh I feel bad now, not knowing it was yours :) - I thought it was something you could do natively though.

How does it work though out of interest? It nests something in the scene?

--
Simon Reeves


www.simonreeves.com - VFX Artist & Blog
twitter


www.analogstudio.co.uk <-- I work here

read 395 times
2/10/2012 12:56:00 PM (last edit: 2/10/2012 12:56:00 PM)
show user profile  Nik Clark
It adds a callback, which is set to run when the scene is loaded.

I haven't used it for many years. The code could probably use a revamp, but at least it works. There may well be a native version of this these days, not sure.


Code below!
---------------------------------
message_title = "Message Title"
message_body = "Message Body"

--
-- Main program, don't change anything below this line.


(
rollout controls "controls"
(
group "buttons"
(
button make_note "add note" across:3
button del_note "delete note"
label _1 ""
Edittext pop_title "Popup Title" text:message_title
Edittext pop_body text:message_body
)

fn remove_note =
(
callbacks.removeScripts #filePostOpen id:#onload_message
)

fn add_note = (
remove_note()
clbckExecSTR = "messageBox \""+ message_body + "\" title:\"" + message_title + "\""
callbacks.addScript #filePostOpen clbckExecSTR id:#onload_message persistent:true
)


on del_note pressed do remove_note()
on make_note pressed do add_note()
on display_note pressed do show_note()

on pop_title entered text do (
message_title = pop_title.text as string
)

on pop_body entered text do (
print "body"
message_body = pop_body.text as string
)

)
if Floaterload_notice != undefined do
(closerolloutfloater Floaterload_notice)
Floaterload_notice = newRolloutFloater "File Load notice" 300 184
addRollout controls Floaterload_notice
)




read 393 times
2/10/2012 12:57:51 PM (last edit: 2/10/2012 1:00:19 PM)
show user profile  Dave
Max can do this natively, but I can't for the life of me remember where it's accessed.

Edit
Oh, just had a look in the Customise User Interface, and there's an action called "Add a Pop-up Note".

"I flew over Egypt once"

read 382 times
2/10/2012 1:14:44 PM (last edit: 2/10/2012 1:16:07 PM)
show user profile  reeves1984
In customise user interface? that sounds like a weird place, I'll have a look though thats awesomeo as I thought there was a way

--
Simon Reeves


www.simonreeves.com - VFX Artist & Blog
twitter


www.analogstudio.co.uk <-- I work here

read 376 times
2/10/2012 1:22:36 PM (last edit: 2/10/2012 1:22:36 PM)
show user profile  Nik Clark
I just checked the code of the Autodesk one, and it's similar to mine.

Use the built-in one. It's probably been tested more than mine!



read 374 times
2/10/2012 1:23:15 PM (last edit: 2/10/2012 1:32:04 PM)
show user profile  reeves1984
They stole it, there, I said it.

--
Simon Reeves


www.simonreeves.com - VFX Artist & Blog
twitter


www.analogstudio.co.uk <-- I work here

read 370 times
2/10/2012 1:29:48 PM (last edit: 2/10/2012 1:29:48 PM)
show user profile  Nik Clark
Well, I didn't want to suggest that myself.... ;o)

He he.



read 368 times
2/10/2012 1:31:46 PM (last edit: 2/10/2012 1:31:46 PM)
#Maxforums IRC
Open chat window


Support Maxforums.org