cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Notes in Parameter editor

Notes in Parameter editor

I would like to add to 3dsmax add notes to the object as a modifier.

the most obvious way for me is to add notes to the Parameter editor,
so you can add an attribute holder modifier with a note.

I found the script http://www.scriptspot.com/3ds-max/scripts/notes-modifier
but it does not open in 3dsmax where it is not,
I would like to be able to leave a note in the modifier that will open in any version of 3dsmax

here is the script:

plugin modifier notesMod
name:"Notes"
classID:#(0x1b51236a, 0x4a9d8f55)
(
parameters main rollout:rltNotes
(
txt type:#string ui:txtNotes
)
rollout rltNotes "Notes"
(
editText txtNotes "" height:90
button btnDel "Erase"

on btnDel pressed do txtNotes.text = ""
)
)

6 Comments
Swordslayer
Advisor

You don't want to be using a custom modifier for exactly that reason, instead your first intuition is right - use the built-in attribute holder modifier that's made for that purpose and custom attributes that will provide the ui/parameter storage. The result looks exactly the same as custom modifier but you can open it on any other max without issues. And you can save it as a script/macro for quick access, too. Let's say you'd put this as a notesAttribDef.ms into the scripts\startup folder:

 

 

notesAttribDef = attributes notesAttribDef attribID:#(0x1b51236a, 0x4a9d8f55)
(
	parameters main rollout:rltNotes
	(
		txt type:#string ui:txtNotes
	)

	rollout rltNotes "Notes"
	(
		editText txtNotes "" height:90
		button btnDel "Erase"

		on btnDel pressed do txtNotes.text = ""
	)
)

 

 

And you can make a macro like this so that you can have a one-click button to add it:

 

 

macroScript AddNotesAttrib category:"Shortcuts" toolTip:"Add Notes" buttonText:"Add Notes"
(
	local attribHolder = EmptyModifier()
	if getCommandPanelTaskMode() == #modify do modPanel.addModToSelection attribHolder
	custAttributes.add attribHolder notesDef
)

 

rusttm
Contributor

@Swordslayer  thank you for the answer, but unfortunately I am not strong in the script so I could not run what you suggested.
and the script that I showed it is very suitable for me, except that it does not open in 3d max where it is not installed

Swordslayer
Advisor

Let's simplify it a bit then, copy-paste this to a script editor in max and press Ctrl+E to evaluate it once:

 

macroScript AddNotesAttrib category:"Shortcuts" toolTip:"Add Notes" buttonText:"Add Notes"
(
	local notesAttribDef = attributes notesAttribDef attribID:#(0x1b51236a, 0x4a9d8f55)
	(
		parameters main rollout:rltNotes
		(
			txt type:#string ui:txtNotes
		)

		rollout rltNotes "Notes"
		(
			editText txtNotes "" height:90
			button btnDel "Erase"

			on btnDel pressed do txtNotes.text = ""
		)
	)

	on execute do
	(
		local attribHolder = EmptyModifier()
		if getCommandPanelTaskMode() == #modify do modPanel.addModToSelection attribHolder
		custAttributes.add attribHolder notesDef
	)
)

 

Now you will have a 'Add Notes' action available to assign shortcut to, put to a toolbar or call from global search anytime you want (no need to ever run it again). You'll find it in the Shortcuts category. That's all. Notes added this way will work anywhere else.

rusttm
Contributor

@Swordslayer I'm getting an error, attached an image2020-10-11_19-44-15.jpg

RGhost77
Advisor

@rusttm 

Change the string:
custAttributes.add attribHolder notesDef

 

to:
custAttributes.add attribHolder notesAttribDef

and it will be work.

rusttm
Contributor

@RGhost77 @Swordslayer Thank you very much everything works

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea