Tue, Dec 24, 7:48 AM 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: Looking for a script to add new channels


alizea ( ) posted Sun, 23 March 2008 at 9:08 AM · edited Tue, 24 December 2024 at 7:11 AM

Hi everybody !
I'm looking for a script that add new channels into several bodyparts of a figure that doesn't  have any " free" channels . I would like to use those channels to inject a custom morph , and I'd like to be able to distribute them .
 ( I'm working on AS Little Dyvil dress , and some cr2 hairs too ) 
Thank you for your help .

Alice's and GND4's Tailor !
Check my free clothing fits : www.alizea3d.com


svdl ( ) posted Sun, 23 March 2008 at 10:19 AM

file_402601.txt

Here you go:

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


alizea ( ) posted Sun, 23 March 2008 at 11:48 AM · edited Sun, 23 March 2008 at 11:49 AM

SVDL , you made my day ! It works just great !
Do you allow me to include your script in my morph pack , please ?

Alice's and GND4's Tailor !
Check my free clothing fits : www.alizea3d.com


svdl ( ) posted Sun, 23 March 2008 at 12:40 PM

Sure. Whipped it up in five minutes, there's no real effort invovled from my part.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


alizea ( ) posted Sun, 23 March 2008 at 1:41 PM

Thank you once again . Maybe it's not a big effort for you now , but you have surely several years of efforts behind you in learning . Thank you for sharing your knowledge .

Alice's and GND4's Tailor !
Check my free clothing fits : www.alizea3d.com


RAMWorks ( ) posted Tue, 25 March 2008 at 12:13 AM

Is there a way to add LOTS of blank channels to a cr2??  A gal is working on getting the Zygote Centaur up to speed by creating LOTS of morphs for him, face and body and needs a way to get as many as she needs with no limitations.  She really needs help.  I'm a part of the team that's working on this project so I thought I'd do a bit of research or ask around.  I searched and found this thread.  Seems easy for some but it's a complete mystery to many!! 

Any help is greatly appreciated!!

All the best

Richard ;-)~

---Wolff On The Prowl---

My Store is HERE

My Freebies are HERE  


svdl ( ) posted Tue, 25 March 2008 at 1:38 AM

Attached Link: http://www.svdlinden.nl/webposerstuff/downloads/createmultipleparameters.zip

Here you go.

You've got two possibilities here.
"CreateMultipleParametersEmbedded.py" has the names of the parameters in a list in the source file. You can easily edit the source file and replace/add names as much as you want.

Or you can use "CreateMultipleParameters.py" that loads them from a text file. Not meant for end users, but could be handy for developers. A sample text file is provided in the zip.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


svdl ( ) posted Tue, 25 March 2008 at 1:57 AM

Attached Link: http://www.svdlinden.nl/webposerstuff/downloads/createchannelscript.zip

Did some rethinking on the purpose of the script, and came up with something better: a script that creates a script. Sounds complicated, but it's not.

Heres how it works:

  • you make a text file with the names of the channels you want. Each channel on its own line in the textfile.
  • then you start Poser and run the script "CreateChannelScript.py". It doesn't matter whether a figure is loaded or not.
  • The script asks you for the file name of the text file with the channels.
  • Then the script asks you for the file name of the channel creation script you want to make. The .py extension is optional.
  • And then "CreateChannelScript.py" creates the script for you. The script it just created then can be distributed with the rest of the product (in this case the Zygote centaur).

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


RAMWorks ( ) posted Tue, 25 March 2008 at 9:07 AM

Thanks so much!  Kattey will be very happy I think!! 😄

---Wolff On The Prowl---

My Store is HERE

My Freebies are HERE  


markschum ( ) posted Tue, 25 March 2008 at 10:58 AM

A channel will be created as a morph is loaded to the figure .  I dont know what the restriction would be on distributing a new cr2 ?


svdl ( ) posted Tue, 25 March 2008 at 11:40 AM

Quote - A channel will be created as a morph is loaded to the figure .  I dont know what the restriction would be on distributing a new cr2 ?

No problem at all. The new cr2 can contain just a readScript statement that reads in the existing cr2, and have the additional channels (problem is that the existing cr2 must be at a fixed location),
or the script can be invoked using a pose file to add the channels to the "old" cr2 the user already has to have in his/her posession.
The second option is probably better, since it doesn't require the original cr2 to sit in a certain predefined folder.

The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter

My gallery   My freestuff


Kattey ( ) posted Sun, 30 March 2008 at 10:47 AM

Svdl, I'm that girl that asked for the script. Thank you very much, it is working very nicely and a huge timesaver!


lesbentley ( ) posted Sat, 03 May 2008 at 10:44 PM · edited Sat, 03 May 2008 at 10:49 PM

These scripts don't work correctly for me in P6. With the "createMultipleChannels.py" I get the error:

Traceback (most recent call last):
  File "", line 20, in ?
AttributeError: CreateFullBodyMorp

And with the "createMultipleChannelsEmbedded.py", I get the error:

Traceback (most recent call last):
  File "", line 24, in ?
AttributeError: CreateFullBodyMorp

With the script generated by "createChannelScript.py", I get this error:

Traceback (most recent call last):
  File "", line 22, in ?
AttributeError: CreateFullBodyMorp

All scripts make one targetGeom channel in each actor, but no valueParm in the BODY.

[edit]
P.S. I just noticed the error says "Morp" not "Morph", don't know if that is significant.


nruddock ( ) posted Sun, 04 May 2008 at 5:52 AM

Quote - These scripts don't work correctly for me in P6.

The CreateFullBodyMorph is P7 only.

Quote - I just noticed the error says "Morp" not "Morph", don't know if that is significant.

Don't think so.


Photopium ( ) posted Mon, 08 December 2008 at 8:34 PM

SVDL- Cannot seem to download from your site, will you let me know when it is back up?  Would really like the script!  thanks.  -WTB


markschum ( ) posted Sat, 08 August 2009 at 3:50 PM

SVDL, any chance of getting the two scripts for multiple channels ?

or anyone who has them could send me a copy ?

thanks


jasmineskunk ( ) posted Sun, 20 December 2009 at 9:39 PM

Can I necromance this thread?

I need exactly this...

a way to add channels to a figure that doesn't have empty channels so I can distribute morphs I have made to others.

I tried the .pmd inj method and it works ok, but I am really wanting to make this available to the whole Poser/Daz community, so I am really struggling to understand all of this stuff.

I have found tut's to tell me what to do after I get the blank channels in there, but although, I did get the script (above) to work, I had no idea what to do with it.

Can someone help me understand?

Thanks,

Jasmine Skunk


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.