Forum: Poser - OFFICIAL


Subject: Conforming clothes and hair animation

VirtualWorldDynamics opened this issue on Jun 14, 2015 ยท 787 posts


thehawkman posted Wed, 13 April 2016 at 3:01 PM

"if you want, you can replace one line of the file "mainButtons.py" which is the default interface for Python. The line "poser.DefineScriptButton(9, ":Runtime:Python:poserScripts:VWD:VWDButtons.py", "VWD")" will replace the 9th button by the text "VWD". By pressing this button, you will execute the script "VWDButtons.py" which displays the VWD buttons. The path have to correspond to your VWD installation, This example corresponds to the default installation."

Either I am misunderstanding the installation instructions for the main VWD program or something else is wrong. My VWD demo is installed at "C:toolsHome & HobbyVirtual World Dynamics Cloth and Hair Simulation" and therefore the code I added to the main.py file is

poser.DefineScriptButton(9, "C:toolsHome & HobbyVirtual World Dynamics Cloth and Hair SimulationRuntimePythonposerScriptsVWDVWDButtons.py", "VWD")

The problem is I get an error message: Null or empty script name passed to PEPythonEngine::DoScript()

I take it that means my path to VWDButtons.py is incorrect but it can't be, I've checked. I am surprised that no one has made this complaint before about Poser not saving the settings for the Script Palette (don't know what genius thought it was a good idea to silently revert the settings) but I think there is a need for a better way to add VWD to the Script palette (or better yet have it create its own Poser window).