Notifications
Clear all

[Closed] Parameter Array for Attribute Holder

How would you go about having an array stored for use with an Attribute Holder? I thought something like this would work, but no luck:

modPanel.addModToSelection (EmptyModifier ()) ui:on
mahVar = attributes attrHolder (
	parameters userInput_par rollout:userInput_ro (
		mahList type:#() ui:lb_Words
	)
	rollout userInput_ro "test" width:150 height:200 (
		edittext inp_Words "" width:100
		listbox lb_Words "" items:#() height:10
		
		on inp_Words entered arg do (
			lb_Words.items = append lb_Words.items arg
			inp_Words.text = ""
		)
		on lb_Words selected arg do (print lb_Words.selected) 
	)
)
custAttributes.add ($.'Attribute Holder') (mahVar)
1 Reply
 lo1

You can only used typed arrays (tabs) in parameter blocks.

In your class, the type of the parameter would be #stringTab

http://docs.autodesk.com/3DSMAX/15/ENU/MAXScript-Help/index.html?url=files/GUID-461915FA-31A2-49CE-84AF-2544B782ACA3.htm,topicNumber=d30e639722