Forum: Poser Python Scripting


Subject: Useful Code Snippets

structure opened this issue on Jun 27, 2019 · 94 posts


structure posted Sun, 22 May 2022 at 12:19 PM Forum Coordinator

in python 3 - reversing "ABRACDABRA"

returns  : ARBADCARBA

Dictionaries are ordered and so can be reversed as is evidenced by 

····· With a dict ·····
{0: '0,1,2,3,4,5,6,7,8,9,', 1: 123, 2: 'more bullsh*t!'}
{2: 'more bullsh*t!', 1: 123, 0: '0,1,2,3,4,5,6,7,8,9,'}
························

sets must be converted to a list to get the data reversed. They also seem to be sorted low to high 

Locked Out