Message 1 of 1
ListView Item Selecting

Not applicable
01-20-2011
01:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Few Questions
1.When you hit print it formats and prints the selected objects names.
Problem:It adds "Ok" to the end of the line and I don't want it to.
2.How do I make the listviews selected item associate with the object array when the button "Select" is pressed. So when Select is pressed it then selects the correct array of objects which are defined at the top in the maxscript file.
1.When you hit print it formats and prints the selected objects names.
Problem:It adds "Ok" to the end of the line and I don't want it to.
2.How do I make the listviews selected item associate with the object array when the button "Select" is pressed. So when Select is pressed it then selects the correct array of objects which are defined at the top in the maxscript file.
rollout rlLights "Light Me Up"
(
local OutterLights = #($Outter_00,$Outter_01,$Outter_02,$Outter_03,$Outter_04,$Outter_05,$Outter_06,$Outter_07)
local InnerLights = #($Sphere009,$Sphere010,$Sphere011,$Sphere012)
button btnPrint "Print" width:45 height:14 pos:
multiListBox mlbxSelSets "Selection Sets: " items:#("OutterLights","InnerLights") pos: width:120 height:10
button btnSetMtl "Make Material" width:120 height:20 pos:
button btn0 "0" width:24 height:20 pos:
button btn25 ".25" width:24 height:20 pos:
button btn5 ".5" width:24 height:20 pos:
button btn75 ".75" width:24 height:20 pos:
button btn1 "1" width:24 height:20 pos:
button btnCopy "Copy mtl" width:55 height:20 pos:
button btnPaste "Paste mtl" width:55 height:20 pos:
button btnClear "Clear keys" width:120 height:20 pos:
button btnSelect "Select" width:120 height:20 pos:
on mlbxSelSets doubleclicked val do
(
print "here we go"
)
on btnSelect pressed do
(
select OutterLights
)
on btnPrint pressed do
(
clearListener()
SelObjects = for i in selection do format "$%," i.name
print SelObjects
)
)
createDialog rlLights width:140 height:290