Wed, Nov 20, 10:34 AM CST

Renderosity Forums / Virtual World Dynamics



Welcome to the Virtual World Dynamics Forum

Virtual World Dynamics F.A.Q (Last Updated: 2024 Nov 05 5:09 pm)




Subject: Help with python buttons


bwldrd ( ) posted Wed, 15 August 2018 at 6:00 PM · edited Wed, 20 November 2024 at 7:52 AM

Can anyone tell me why the python buttons won't launch VWD. I either have to run the script manually or I am going to need to change the button script to reflect the acutual paths. As the script is now, when I press the "Start VWD Button", it just gives me this error.

Screenshot - 8_15_2018 , 6_52_25 PM.jpg

And here is the listing for the buttons.

Screenshot - 8_15_2018 , 6_53_33 PM.jpg

--------------------------------------------------------------------------------

Consider me insane if you wish, but is your reality any better?


VirtualWorldDynamics ( ) posted Thu, 16 August 2018 at 11:53 AM

Hello bwldrd,

There is a script named "VWDButtons.py" if I remember correctly. The best way is to add this script to the Python interface. Then, when you press on this "VWDButtons" button, the interface changes. The new Python interface shows all the buttons useful to work with VWD. One button stops this new interface and restore the original Python interface.

I give you these informations by trying to remember me correctly. I will give you more precise informations later.

____________________________________________

Follow me on Twitter : @VWDynamics

Watch demo videos on Youtube


bwldrd ( ) posted Thu, 16 August 2018 at 2:05 PM · edited Thu, 16 August 2018 at 2:10 PM

Yep, I've done that. And have the buttons show up in the button menu. Just when I try to use them to start VWD I get that error. If I launch and run VWD manually by using the run python script (File menu) they will work correctly, but not until I have launched VWD manually each session I use poser. It's like it can't recognise where it's installed until I've run it once. The path variables don't seem to be working for it until it's launched and learned where it's at. Think I'll just change the buttons to reflect the absolute path I of where it is, like my other python buttons. runtime:python: .. etc. instead of that os.path bit.

Thanks for the reply.

--------------------------------------------------------------------------------

Consider me insane if you wish, but is your reality any better?


VirtualWorldDynamics ( ) posted Thu, 16 August 2018 at 3:31 PM

As you saw in the script, the first line get the full path of the current script file and the second one keeps the path without the file name. All the following actions will depend on this path and the VWDClothAndHair.exe file must in this folder. In one word, all the scripts and the VWD program must be in the same folder. Can you confirm they are in different folders. Otherwise, I will try to understand why you have this issue.

____________________________________________

Follow me on Twitter : @VWDynamics

Watch demo videos on Youtube


bwldrd ( ) posted Fri, 17 August 2018 at 2:50 AM · edited Fri, 17 August 2018 at 2:51 AM

Included screenshot shows all the files in directory :Runtime:Python:PoserScripts:VWD:

Screenshot - 8_17_2018 , 3_23_56 AM.jpg

I just went ahead and did like I mentioned and just changed the listings to absolute paths, and it is working. poser.DefineScriptButton(1, ":Runtime:Python:PoserScripts:VWD:StartVWD.py", "Start VWD") .. etc for each button

--------------------------------------------------------------------------------

Consider me insane if you wish, but is your reality any better?


VirtualWorldDynamics ( ) posted Sat, 18 August 2018 at 3:40 PM

Hello bwldrd,

Happy that you resolved the issue. I suppose you used the files included in the default Poser installation. I will look at these files and I will try to understand your issue. Sorry for that.

____________________________________________

Follow me on Twitter : @VWDynamics

Watch demo videos on Youtube


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.