Notifications
Clear all

[Closed] Searching for a script

But forgot the name.

Basically what the script does is open a dialog on opening a scene with notes from the previous user. So I have to check models and write down in a checklist what was wrong and then forward the file and checklist to the next person. He /she opens the file and POP there is the checklist open. could’ve sworn I saw it on cgtalk before, does anyone remember the name or a similar script? thanks.

Im not talking about checklist btw.

5 Replies

Hi,
This is already in Max, but not exposed to standard max install (I think ?)
go to customize ui, then search for ‘popup notes’.
I don’t remember what category the scripts belong to.

 PEN

Look up popup notes in the customize user settings. It has been there since about Max 4, was in the UI for a couple versions and then for some reason it was removed.

fantastic! found it. Thanks guys

aaand I messed up as well. ffs

I saw the script could be edited. Wanted to make the dialog bigger, couldnt save because the script had tildes instead of “. replaced everything, thought that would do it. Saved and now I effed up and get an error

Unable to convert: “AUTHOR_WIDTH” to type: integer.

returned whole script back to normal and of course cant EVALUATE ALL because of the tildes in the script. so I admit, I suck. Any way to fix this problem? I couldnt find any place where the script macro_notes.mcr is saved either btw :S

ok cleaned up the code myself a bit. But every time I reload the file with an attached note I get the following error:

–Argument count error: Messagebox wanted 1, got 2

this is the code now:

-- Notes MacroScript File
--
-- Created:  		Dec 1 2000
-- Last Updated: 	Dec 20 2000
--
-- Author :   Frederick Ruff
/*
Version:  3ds max 6

 
This script adds Popup Notes to scene files.
********************************************************************************************
 MODIFY THIS AT YOUR OWN RISK
 

	12 dec 2003, Pierre-Felix Breton, 
		added product switcher: this macro file can be shared with all Discreet products


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 Localization Notes

 "Localize On" states an area where locization should begin
 "Localize Off"  states an area where locization should end

 Localization Note *** states that the next line has special localization instructions for the next line.
 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

*/

MacroScript AddPopupNote
enabledIn:#("max", "viz") --pfb: 2003.12.12 added product switch
ButtonText:"Add popup note"
Category:"ADDPOPUPNOTE_CATEGORY" 
internalCategory:"Pop up Note" 
Tooltip:"ADDPOPUPNOTE_TOOLTIP" 
(
	/* "Localize On" */
	--Persistent Global Note_NoteString
	--Persistent Global Note_AuthorString
	--Persistent Global Note_TextString
	rollout NoteRollout "Note" -- width:800 height:900
	(
		Edittext auth "Author"fieldwidth:150 text:""
		Edittext dtstmp "Date" fieldwidth:150 offset:[8,0] text:localtime
		Checkbox Persist "Show note on file open" checked:true  
		Edittext line1 width:450 height:100 text:""
		Button CanclAll "Cancel"
		Button Gogo "Add note"
	
	On Gogo pressed do
		(
		callbacks.removescripts id:#SceneNote
		
		
		--  Localization Note  states that the next line has special localization instructions for the next line.
		-- Persistent Global Note_NoteString = "Messagebox \"" + "(loc)Author: " + auth.text+"
"+dtstmp.text+"

(loc)Note Comments:
"+ line1.text+ "\"" + "title:\"(loc)Pop-up Note\""
		
-- 		Persistent Global Note_NoteString = "Messagebox \"" + "Author" + auth.text+"
"+dtstmp.text+"note"+ line1.text+ "\"" + "title"
		Persistent Global Note_AuthorString = auth.text
		Persistent Global Note_TextString = line1.text
		If Persist.checked == true do callbacks.addscript #filepostopen "Execute Note_NoteString" id:#SceneNote persistent:true
		destroydialog NoteRollout
		fileproperties.addproperty #summary "comments" Note_TextString
		fileproperties.addproperty #summary "author" Note_AuthorString

		)
-- 	On NoteRollout Open do 
-- 		(
-- 			try (auth.text = fileProperties.getPropertyvalue #summary 2) Catch()
-- 			try (line1.text = fileProperties.getPropertyvalue #summary 1) Catch()
-- 		)
	On CanclAll pressed do destroydialog NoteRollout
	)
	CreateDialog  NoteRollout  width:800 height:500		
	
)

MacroScript ReadPopupNote
enabledIn:#("max", "viz") --pfb: 2003.12.12 added product switch

ButtonText:"Read popup note"
Category:"READPOPUPNOTE_CATEGORY" 
internalCategory:"Pop up Note" 
Tooltip:"READPOPUPNOTE_TOOLTIP" 
(
	If Note_NoteString != undefined then Execute Note_NoteString
	Else  MessageBox "MSGBOX_NO_NOTES_PRESENT" Title:"MSGBOX_NO_NOTES_PRESENT_TITLE" beep:no
)

MacroScript DeletePopupNote
enabledIn:#("max", "viz") --pfb: 2003.12.12 added product switch
ButtonText:"Delete popup note"
Category:"DELETEPOPUPNOTE_CATEGORY"
internalCategory:"Pop up Note" 
Tooltip:"DELETEPOPUPNOTE_TOOLTIP" 
(
	If Note_NoteString != undefined then
	(
		 if querybox "QUERYBOX_ARE_YOU_SURE" then 
		(
		callbacks.removescripts id:#SceneNote
		messagebox "MSGBOX_THE_NOTE_HAS_BEEN_DELETED" title:"MSGBOX_THE_NOTE_HAS_BEEN_DELETED_TITLE" beep:no
		Note_NoteString = undefined
		)
	)
	Else  MessageBox "MB_NO_NOTES_PRESENT" Title:"MB_NO_NOTES_PRESENT_TITLE" beep:no
)

MacroScript SupressPopupNote
enabledIn:#("max", "viz") --pfb: 2003.12.12 added product switch
ButtonText:"SUPRESSPOPUPNOTE_BUTTONTEXT"
Category:"SUPRESSPOPUPNOTE_CATEGORY" 
internalCategory:"Pop up Note" 
Tooltip:"SUPRESSPOPUPNOTE_TOOLTIP" 
(
	if Note_NoteString != undefined then
		(
		callbacks.removescripts id:#SceneNote
	
		messagebox "MSGBOX_THE_NOTE_HAS_BEEN_SUPPRESSED" title:"MSGBOX_THE_NOTE_HAS_BEEN_SUPPRESSED_TITLE" beep:no
		)
	Else MessageBox "MSGBOX_NO_NOTE_PRESENT" Title:"MSGBOX_NO_NOTE_PRESENT_TITLE" beep:no
)
/* "Localize Off" */

ahem. So I rebooted got a shiteload of errors, deleted my edited scripts and somehow managed to get the old ones working again.

note to self: dont fix stuff that aint broken