Forum: Poser 12


Subject: Snarly's scripts and Poser 12

Snarlygribbly opened this issue on Jun 11, 2020 ยท 120 posts


Y-Phil posted Thu, 29 July 2021 at 2:05 AM

You may even have a unique collection of scripts that works either with Poser 11 or Poser 12, and have at the same tรฎme the collection that adapts itself, using Poser's Python menu.

Example:

import poser

version = poser.AppVersion()

if version[0:2] < '12':
    poser.DefineScriptButton(1,  ":Runtime:Python:PoserScripts:ScriptsMenu:EZSkin3.pyc", "EZSkin3")
    poser.DefineScriptButton(2,  ":Runtime:Python:PoserScripts:ScriptsMenu:ezdome.pyc", "EZDome")
    poser.DefineScriptButton(3,  ":Runtime:Python:PoserScripts:Cyp:V11:Launch_Object_manager_P9.pyc", "Object Manager")
    poser.DefineScriptButton(4,  ":Runtime:Python:PoserScripts:ScriptsMenu:Utility:deleteLights.py", "Delete all lights")
    poser.DefineScriptButton(5,  ":Runtime:Python:PoserScripts:Cyp:XLC_V11:XLC.py", "Extended light control")
    poser.DefineScriptButton(6,  ":Runtime:Python:PoserScripts:ScriptsMenu:Netherworks:Material Tools:Transfer Material.py", "Transfer Material")
    poser.DefineScriptButton(7,  ":Runtime:Python:PoserScripts:Cyp:tools-v11:tools.py", "Tools...")
else:
    poser.DefineScriptButton(1,  ":Runtime:Python:PoserScripts:Cyp:tools-v12:layers-nodes:tools.py", "Mats/Nodes...")
    poser.DefineScriptButton(2,  ":Runtime:Python:PoserScripts:Cyp:tools-v12:lights:tools.py", "Lights...")
    poser.DefineScriptButton(3,  ":Runtime:Python:PoserScripts:Cyp:tools-v12:tools.py", "Tools...")
    poser.DefineScriptButton(4,  ":Runtime:Python:PoserScripts:Cyp:tools-v12:set_background_angle.py", "Background Angle")
    poser.DefineScriptButton(5,  ":Runtime:Python:PoserScripts:Cyp:snarly:tools.py", "Snarly's...")
    poser.DefineScriptButton(6,  ":Runtime:Python:PoserScripts:Cyp:tools-v12:WN_Cloth_Presets.pyc", "Cloth Presets")
    poser.DefineScriptButton(7,  "", "...")
poser.DefineScriptButton(8,  ":Runtime:Python:PoserScripts:Cyp:Sasha-16:tools.py", "Sasha-16")
poser.DefineScriptButton(9,  ":Runtime:Python:poserScripts:Cyp:ik:IK_mgt.py", "IK management")
poser.DefineScriptButton(10, ":Runtime:Python:PoserScripts:mainButtons.py", "Main...")

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


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

๐Ÿ‘ฟ 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, Sonoma 14.6.1, 16GB, 500GB SSD
๐Ÿ‘ฟ Nas 10TB
๐Ÿ‘ฟ Poser 13 and soon 14 โค๏ธ