Fri, Jan 10, 8:59 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2025 Jan 10 1:16 pm)



Subject: Calling all Python Gurus. *smile* (this means you, Ockham and lesbentley)


RKane_1 ( ) posted Mon, 09 January 2006 at 7:39 PM · edited Fri, 10 January 2025 at 8:57 PM

Calling all Python Gurus. smile I have some questions... These are WEIRD questions, but I am unfamiliar with Python and its limits and scope so bear with me. 1)Could you make it so an object would :Snap to a location where another onject was in Poser with a Python button? 2)Is there a Toggle Bodyhandles visibility button or would that have to be specific to a named BodyHandle for a specific figure? Could a script be made to make any items beginning with a certain series of letters change visibility rather than having to be specifically named? 3)Okay, here's the REALLY weird one. If you had a certain figure whose exact numbers for positioning and what are known for when at zero pose, can you make a Poser Python Script that will spontaneously make a Body handle at a predetermined location and another that would remove it? (I know, I know. I'm insane and I have no grasp of what I am speaking. smile Whats new? Never stopped me before) 4)Do you guys have any specific Python Scripts for the Hair Room? 5)Could Python Scripts be made to allow alternate geometry switching? i.e. switching to a head with more polys? Switching to a different body part like a claw or larger hand? Could this swap include bone rigging info different from the first? Aren't I just FULL of questions? smile


ockham ( ) posted Mon, 09 January 2006 at 9:09 PM
  1. Snap-to would be easy. Probably the best way to do it would be like this: the script senses which item (or which BODY of a figure) you've selected before the script is activated. The script waits until another item (or figure) is selected, and at that moment it snaps the first thing to the location of the second. 2. I don't know from Body Handles. Maybe Les does. Toggling visibility of things containing a certain name would be easy. 3. Making a body handle: Probably could make a 'puller' that would influence the chosen part most strongly, but not sure. 4. Hair: No. Probably someone else does, though! P6 opened up some of the hair room controls to Python. 5. Alt geom: Yes, could extend my ERC builder to do that. I'll work on the first two "would-be-easy"s right now.

My python page
My ShareCG freebies


ockham ( ) posted Mon, 09 January 2006 at 9:49 PM

Attached Link: http://ockhamsbungalow.nstemp.com/Python/SnapTo.zip

Here's the snap-to. Sort of fun! Mainly meant for moving a prop onto a body part like a hand, without having to check several different camera angles. See the readme for instructions.

My python page
My ShareCG freebies


ockham ( ) posted Mon, 09 January 2006 at 10:03 PM

Attached Link: http://ockhamsbungalow.nstemp.com/Python/ToggleVisByName.zip

And here's Toggle Visibility By Name. Pretty much self-explanatory, I think. Incidentally, I'd wished for these two scripts at various times, but never quite worked up the gumption to write them!

My python page
My ShareCG freebies


Tyger_purr ( ) posted Mon, 09 January 2006 at 10:08 PM

while your at it would it be possible to creat a wacro that will turn on "normals forward" for all materials in a prop or figure?

My Homepage - Free stuff and Galleries


ockham ( ) posted Mon, 09 January 2006 at 10:25 PM

Normals forward: Calling the wacro specialists, like face_off and PoseWorks. I don't see a direct way to set that change, but it's likely possible by an indirect method, such as writing a short pz2 file for each material.

My python page
My ShareCG freebies


Tyger_purr ( ) posted Mon, 09 January 2006 at 10:38 PM

smacks forhead on keyboard Shaderspider will do it. pardon me. i'll be over here fealing silly for not thinking of it before :p

My Homepage - Free stuff and Galleries


ockham ( ) posted Mon, 09 January 2006 at 10:41 PM

I figured the action would be included in one of those shader kits!

My python page
My ShareCG freebies


RKane_1 ( ) posted Tue, 10 January 2006 at 4:16 AM

Ockham....wow. erm....just asked if it was POSSIBLE....you done and did it. 1)My original question was so that you could use a ball prop into position and then snap the Line of Sight tool on Apollo to that place. The Line of Sight tool has issues being used with the Translation tool and I thought this would be a solution....Erm....cool. Would you be able to write a script that did that specifically? One button to make the ball, one to toggle its visibility and then the thrid to place the Line of Sight tool where the ball was? I mean....if you would be so kind. smile 2)The second was asked to see if it was possible to place bone handles on Apollo's body handles and toggle their visibility. Right now you can just click on them and mess with the dials but I was hoping to get little visible handles on them and work them that way. Then to see the results without the handle in the way, turn off the visibility. 3) The third question was because even though there are "Fat morphs" out there, very few do the job when it comes to animting properly and looking natural. I was hoping to make something specifically for a figure (Apollo, obviously) that would add body handles for specific areas and then remove them if they were no longer needed. I was hoping to have the following done for Apollo: CheekR CheekL UnderChin Lovehandles Tummy ButtockR ButtockL LovehandleR LovehandleL SubThighR SubThighL These handles would just be to "move the fat around" and not be needed on figure with "no extra baggage". Think that is something that is possible or just too intensive. If it is possible, could oppen a lot of doors for new figures. 4) Cool. I wonder who the first innovative Python writer will be that comes up with some great buttons for the Hair room? 5) This could REALLY open up some places for figures. You could have a list of AltGeoms instead of just the Genetalia. Imagine having the Freak without having to switch figures, just algeom and altrig out to biggerhands. Same thing with tails or extrasets of arms. smile I would imagine they would of course have to be specific to the figure they were made for though. Hmmm....possibilities abound.


Hubert.Holin ( ) posted Tue, 10 January 2006 at 7:53 AM

Attached Link: http://www.renderosity.com/messages.ez?Form.ShowMessage=2437535

Bonjour > 4)Do you guys have any specific Python Scripts for the Hair Room? Well, I am definitely not a Python "Guru", but I did post two scripts for the P6 Hair Room, a while back, in this forum (link above). I do no think they qualify as "great" either, but perhaps they could turn out to be useful... Hubert Holin


RKane_1 ( ) posted Tue, 10 January 2006 at 7:53 AM

Also, what about a python script just to convert FullBodyMorph Dials to ADS dials. There is a tut on the forum over at RDNA Apollo Max Forum... http://www.runtimedna.com/mod/forum/messages.php?forum_id=47&ShowMessage=185181 Any help you can provide here is much appreciated. smile


ockham ( ) posted Tue, 10 January 2006 at 10:52 AM

Probably we should continue this discussion at RDNA, since that's where Apollo lives...

My python page
My ShareCG freebies


FishNose ( ) posted Tue, 10 January 2006 at 4:07 PM

Wow ockham, that snap to thingy is a great addition. :] Fish


lesbentley ( ) posted Tue, 10 January 2006 at 9:31 PM

Whats an ADS dial???


R_Hatch ( ) posted Tue, 10 January 2006 at 10:53 PM

Thanks Ockham. I don't have a lot of body handles on my fgures, and they're not visible due to being contained entirely within the figure's body, but it may still prove useful. One thing I do is to name all handles starting with "0-", which would make using your script a snap. The snap-to script will be used a lot by me, OTOH, since I often need to get a camera zoomed in on a body part or prop.


RKane_1 ( ) posted Wed, 11 January 2006 at 2:11 AM

lesbentley... ADS Is a special feature of Apollo Max. Its short for Alternate Dial system. Its a series of dials on a separate body part that is not a true body part. There are ADS_Scale Dials and ADS_Body dials. They work like Full Body Morphs or ERC's but the benefit is, it easier to save body types and say fantasy race types as a second pose and not have it affected by new poses that you place on the figure. The ADS Scale poses can be worked like a morph and save like one. This allows Apollo to shift from a small boy to a midget to a giant to a lithe form to a muscular form to a svelte form, and all points in between and not have new poses on the figure Knock these off of him. Its pre-existing Poser code used in a new way. Pretty interesting. smile


carodan ( ) posted Wed, 11 January 2006 at 4:11 AM

I was actually surprised at how little you have to do in the Cr2 to turn an FBM into an ADS bodydial. It's the first thing I've ever sucessfully edited manually, which for me is quite a triumph! One of the coolest aspects of ADS is you can copy dialed body shapes from the regular body channel to the ADS_Body Channel (so long as the morphs used are ADS dials) and then save them (as well as ADS_Scale info) as pose files for easy storage, usage and distribution. It's a fantastic feature unique to Apollo that expands the potential for character creation no end. For example, you can load a saved ADS pose on one end of the animation timeslider, a different one at the other end and find interesting new blends in between. The other great use of this system is with Apollo's clothing (particularly the default base at present). You can load a saved ADS pose to clothing that incorporates the ADS system and make it fit pretty much perfectly almost instantly. Scripts that could enable you to turn a regular FBM into an ADS body dial would indeed be most useful. Havn't looked into what's involved with the scale channel yet, but that would be good too.

 

PoserPro2014(Sr4), Win7 x64, display units set to inches.

                                      www.danielroseartnew.weebly.com



RKane_1 ( ) posted Wed, 11 January 2006 at 4:27 AM

We swear....we're not members of a cult. smile Just TRY the Apollo figure. Go ahead. All the cool kids are doing it. You want to be cool, right? smile kiddin'.


byAnton ( ) posted Wed, 11 January 2006 at 4:45 AM

Cool stuff. That snap to one sounds really handy and just plain fun. lesbentley, You probably forgot me IM'ing you ages ago to a thread you had exploring the use of redundant tran and rot dials. To jog your memory a bit. While allowed in Poser, it is anomolous. Redundant rot dials are completely unstable. Reducdant Tran dials natively are unstable as well and will result in a very specific "anomoly". ADS, which is "alternate Dial Save", is the stable use of the dials allowing them to be saved into the library. Regards, Anton Re: APollo's readme restrictions. Though i make no claim to the use of redundant Tran dials, I do make claim to the fix that removes the anomoly. I have no problems with a Apollo specific script for him or his add-ons, but would have to object to any script that applied my fix to any non-Apollo cr2. The fix isn't public domain. blah blah blah, etc etc etc. :) ANyways. Fun stuff for sure. Take care. Anton.

-Anton, creator of Apollo Maximus
"Conviction without truth is denial; Denial in the face of truth is concealment."


Over 100,000 Downloads....


RKane_1 ( ) posted Wed, 11 January 2006 at 5:08 AM

Yeppers....specifically for Apollo. smile Thats all I need it for...and his clothing, of course.


byAnton ( ) posted Wed, 11 January 2006 at 5:17 AM

Cool. Just have to say this stuff. Recently someone spitefully threatened to make a DazStudio plugin that applied ADS to mil people, so I have to cover my bases.

-Anton, creator of Apollo Maximus
"Conviction without truth is denial; Denial in the face of truth is concealment."


Over 100,000 Downloads....


carodan ( ) posted Wed, 11 January 2006 at 5:25 AM

Yeah, I was referring specifically for Apollo too.

 

PoserPro2014(Sr4), Win7 x64, display units set to inches.

                                      www.danielroseartnew.weebly.com



RKane_1 ( ) posted Wed, 11 January 2006 at 6:11 AM

RKane_1 and Carodan look blearily-eyed at Anton Yesssss....masssssterrrr. smile (disclaimer: Not a cult....I swear. chuckle)


carodan ( ) posted Wed, 11 January 2006 at 6:28 AM

Weary Eyed in my case (losing sleep trying to understand Cr2s).

 

PoserPro2014(Sr4), Win7 x64, display units set to inches.

                                      www.danielroseartnew.weebly.com



mathman ( ) posted Wed, 11 January 2006 at 3:16 PM

Merci beaucoup, Hubert :)


Hubert.Holin ( ) posted Wed, 11 January 2006 at 5:02 PM

Bonjour >Merci beaucoup, Hubert :) Tout le plaisir est pour moi!


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.