Tue, Nov 26, 7:16 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 Sep 18 2:50 am)

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: Force Limits script


raven ( ) posted Tue, 13 December 2011 at 11:34 AM · edited Tue, 26 November 2024 at 7:15 AM

I've found that lots of items that need limits set quite often exceed their limits when using the dials, however having 'Use Limits' enabled from the Figure menu is an all or nothing option, and sometimes certain items in a scene can benefit from exceeding their limits. By using the 'Force Limits' checkbox in the morph parameter settings dialog box on these objects their limits can be individually enforced.

So what I'm asking is, would it be possible to write (or rather, have written! :) ) a script that would allow enabling of the force limits checkbox on the morphs for a selected object?

I'll be honest, I think I'm probably asking for a little too much here, but hey, it's gotta be worth a shot right? :)



Gareee ( ) posted Tue, 13 December 2011 at 2:18 PM

When you double click any dial, one of the options is force limits. Isn't that what you want?

Way too many people take way too many things way too seriously.


semidieu ( ) posted Tue, 13 December 2011 at 2:43 PM

If I recall correctly, there is no python function to do this directly.

But... just to be sure... you would like a dialog that would show all the parameters from the selected object and where you would be able to check all the one you want to force limits at once... Do I understand correctly ?


raven ( ) posted Wed, 14 December 2011 at 2:09 PM

@ Gareee, yes that's the option, but when there are a lot of morphs and many body parts with morphs that's a lot of double-clicking and selecting.

@ semidieu, ideally yes. The ability to enable all/some of the force limits at once on a selected object via dialog.

The idea for this came to me when I was using the cryo chambers (former freebie from DAZ )  and moving some of the various parts and having them go through itself from over dialling the morphs, but similar problems happens with, for example, car doors, weapon parts etc.

Thanks for looking.



semidieu ( ) posted Wed, 14 December 2011 at 2:43 PM

What version of Poser ?


raven ( ) posted Wed, 14 December 2011 at 2:59 PM

I'm currently using the 64bit version of PoserPro2012.



semidieu ( ) posted Wed, 14 December 2011 at 3:41 PM

I have to check one or two little things... but I think this should be possible. As said, Poser Python do not have the function to do it... directly.

But there is a workaround... I have to test it on props and will make a little user interface...

BUT... there is no way to know if a parameter has the 'Set limits' enabled or disabled. So it won't be able to display the parameters with the limits set to on for example.


raven ( ) posted Thu, 15 December 2011 at 11:26 AM

That's ok.

Thanks again for having a go at this.



semidieu ( ) posted Thu, 15 December 2011 at 2:21 PM · edited Thu, 15 December 2011 at 2:23 PM

file_476350.txt

OK... it is working. Just need to consider how to create an user interface for this... A simple dialog with checkboxes... or a little bit more complex window (for easy selection...).

 

Don't remember if this forum allows to attach .py file... For testing the script, can you send me an email at semidieu@shaderworks-studio.com

 

EDIT: Tried to attach the script - I have to rename it.

Save the file and change the extension from .txt to .py

Select the actor. If it's a body part from a figure, it will apply to the whole figure.

Run the script from File - Run python script (or save the file in the scripts menu).

 

Actually, no user interface - just a basic script that does set the limits to all parameters from a figure or prop.


raven ( ) posted Thu, 15 December 2011 at 4:21 PM

Many thanks semidieu, it works a treat on the items I've tested it on so far.

Great stuff! :)



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.