' ----------------------------------------------------- ' Description block '(c) David Lanier 3D 'Plugins and Shaders Developer 'www.dl3d.com 'This Visual Basic script should be launched in the XSI script editor 'It is used to print the name of selected objects in the script 'editor. You can add you own commands in the ProcessObject function 'This is a basic script to be used as a tutorial 'Use and modify it at your own risk. ' ----------------------------------------------------- ' Functions block 'Function to process an object, customize it if needed Function ProcessObject (InObj, InCnt) logmessage "Object #" & InCnt & " name : " & InObj.name 'add your own commands here End Function ' ----------------------------------------------------- ' Script block set oSelList = Application.Selection logmessage "Num selected objects : "& oSelList.count cnt = 1 For each obj in oselList ProcessObject obj, cnt cnt = cnt + 1 Next logmessage "Finished ! :-)"