Hi All,
I've only really got very limited knowledge of Scripting so I'm currently really struggling with this.
Basically we need a script that will export a list of items in a scene, specifically the Grouped items, to an Excel sheet.
I've managed to find the Script, but the problem is if we have 4 chairs in the scene it changes the end digit incrementally and we need the names the same as the Group name.
Is there a way to add in something that will count up the same named Groups and put this number in a separate column in Excel?
Thanks in advance for any help. And by all means if anyone needs any help with something more in our remit then just let us know.
fn printAllGroups txtFile =
(
helper = for node in helpers where isGroupHead node collect node.name
if helper.count == 0 then messageBox "No Groups in the scene!" title:"INFO" beep:off else
(
(dotnetclass "System.IO.File").WriteAllLines txtFile helper ; free helper
)
)
printAllGroups @"c:\temp\SceneGroups.xls"