Forum: Poser Python Scripting


Subject: Useful Code Snippets

structure opened this issue on Jun 27, 2019 ยท 94 posts


structure posted Sun, 05 April 2020 at 11:11 PM Forum Coordinator

replacing all backslashes in a list of paths


def replaceBackslashinList( Thislist, bs, fs ):
    return list(map(lambda x: x.replace( bs, fs), Thislist) )

myList = replaceBackslashinList(myList, "\\", "/")

Locked Out