Notifications
Clear all
[Closed] how to array Subtraction ?
Dec 18, 2009 1:12 am
HI,all
how to do SceneFileList3 = SceneFileList – SceneFileList2 ? thanks!
the code:
if MaxFileName != "" then
(
ATSOps.Refresh()
SceneFileList = #()
SceneFileList2 = #()
SceneFileList3 = #()
ATSOps.getFiles &SceneFileList
deleteItem SceneFileList 1
print SceneFileList
if (SceneFileList.count != 0) do ( SceneFileList2 = (for n = SceneFileList.count to 1 by -1 where (pathConfig.isAbsolutePath SceneFileList[n] == true) collect SceneFilelist[n])
ATSOps.numFilesSelected()
)
)
2 Replies
Dec 18, 2009 1:12 am
SceneFileList3 = for i in SceneFileList where finditem SceneFileList2 i == 0 collect i