Forum: Poser 12


Subject: dson after uninstal giving errors

firecircle opened this issue on Dec 10, 2020 ยท 26 posts


Y-Phil posted Tue, 03 May 2022 at 6:59 AM

This is about the line
print ('%s renamed to %s.') % (vu, actor.Name())

the correct ways, still Python2-compatible, are:
print ('%s renamed to %s.' % (vu, actor.Name()))
or:
print ('%s renamed to %s.'.format(vu, actor.Name()))

Starting with Python3, the most efficient way is:
print (f'{vu} renamed to {actor.Name()}.')

note the "f" before the string to print, and the fact that your variables and python calls are between {....}
I find this more easy to read, as I precisely know what will appear where.

๐’ซ๐’ฝ๐“Ž๐“


(ใฃโ—”โ—กโ—”)ใฃ

๐Ÿ‘ฟ Win11 on i9-13900K@5GHz, 64GB, RoG Strix B760F Gamng, Asus Tuf Gaming RTX 4070 OC Edition, 1 TB SSD, 6+4+8TB HD
๐Ÿ‘ฟ Mac Mini M2, Sequoia 15.2, 16GB, 500GB SSD
๐Ÿ‘ฟ Nas 10TB
๐Ÿ‘ฟ Poser 13 and soon 14 โค๏ธ