Forum: Poser Python Scripting


Subject: Looking for a script to add new channels

alizea opened this issue on Mar 23, 2008 · 17 posts


alizea posted Sun, 23 March 2008 at 9:08 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

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

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:

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

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