Fri, Jan 3, 12:30 PM CST

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)

We now have a ProPack Section in the Poser FreeStuff.
Check out the new Poser Python Wish List thread. If you have an idea for a script, jot it down and maybe someone can write it. If you're looking to write a script, check out this thread for useful suggestions.

Also, check out the official Python site for interpreters, sample code, applications, cool links and debuggers. This is THE central site for Python.

You can now attach text files to your posts to pass around scripts. Just attach the script as a txt file like you would a jpg or gif. Since the forum will use a random name for the file in the link, you should give instructions on what the file name should be and where to install it. Its a good idea to usually put that info right in the script file as well.

Checkout the Renderosity MarketPlace - Your source for digital art content!



Subject: Really dumb question by Pyton and Libraries


grichter ( ) posted Sun, 20 May 2007 at 1:22 PM · edited Fri, 27 December 2024 at 9:57 PM

What I know about Python scripting, is how to activate and use some of the reaaly cool scripts everybody makes, beyond that, zero.

I have seen Library icons (don't know what else to call them), used to connect to scripts to delete the lights and or launch scripts. So my dumb question of the year regarding scripting is can you use Python scripting to navigate the Library.

Two thoughts come to mind.

1.) I am in the figures Library and I have loaded a piece of clothes. I hit an icon and changes the Library to the Mat Pose Library associated with that piece of clothes.

2.) You can have hair in the Hair Library and in the  figures Library. You place an icon in the hair Library that represents a hair style in the figures Library. You scan down the icons and think, cool this one looks perfect for the scene I want to create. You click on it and it changes the Library from the Hair Library to the Figures Library where the hair peice is really located. Then going back to example 1, have a script take you to the correct Mat Pose Library for that hair piece.

I realize that this would have to be hard coded in the much like what I have done myself to trigger the Netherworks cloth kits. Here is an example of what I am taking about. Not a lot of code. Something the user could possibly even pass a variable to the script that is the proper location yu want to jump to.

{

version
    {
    number 6
    }
runPythonScript ":Runtime:Python:poserScripts:ClothKit:NWS-AllMagnetsOn.py"
}

Any how,  to stop a long winded message from becoming longer. Is this even possible? If so I think it would be a great addition for all poser users.  And no, I don't want to write the script myself. I fgiured I could con, bribe or pay somebody else to create it that knew what they were doing.

thanks

Gary

"Those who lose themselves in a passion lose less than those who lose their passion"


semidieu ( ) posted Sun, 20 May 2007 at 2:39 PM

1.  No, not actually. You cannot change the library type or runtime.

2°. No again... but if you want, I think you can put the Hair figure in the hair library (don't forget to change the extension (cr2 -> hr2 or crz -> hrz).


EnglishBob ( ) posted Mon, 21 May 2007 at 5:08 AM

This isn't what you asked, but may be worth considering anyway. Look into Advanced Library or P3dO Explorer which both work in conjunction with PRPC. These are ways of bypassing the Poser library palette altogether. You can arrange your library files in any way you like, without having to conform to Poser's folder restrictions - so you can, if you want, have a clothing item, smart props, and MAT poses all in one folder for example. I use PRPC and P3dO, and never normally open my Poser library during a session. :)


grichter ( ) posted Mon, 21 May 2007 at 7:41 AM

Thanks EnglishVob, but I am on a Mac and those are Windoze apps. Workings towrds fetting an Intel Mac in the fall. Right now moeny budgeted elsewhere.

Gary

"Those who lose themselves in a passion lose less than those who lose their passion"


Dizzi ( ) posted Mon, 21 May 2007 at 12:04 PM

Does PRPC work on Poser 7 Mac? If so, I could put more effort in getting Advanced Library to run on the Macs ;-)



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.