Sun, Nov 17, 1:29 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 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: Action taken on Pose change??


FVerbaas ( ) posted Wed, 13 December 2017 at 3:23 PM · edited Sun, 17 November 2024 at 11:44 AM
Forum Coordinator

I am getting on with my MarvelousSynchroniser. I have come to the point that the script puts up a stay-on-top dialog with a button that does trigger the export to (.obj format) and a text box showing the text 'synchronised' after succesful completion. The dialog stays on until dismissed.
I now want to make the text box show whether the figure pose is still as exported, so change to 'click to update' if a parameter of the selected figure is changed.

Is there an example how to do this? : I recall having seen some 'onParameterChange()' somewhere but I cannot find it anymore now.


structure ( ) posted Thu, 14 December 2017 at 4:46 AM
Forum Coordinator

you may be looking for kEventCodeParmChanged, however, there is very little information on it in the manual.

Locked Out


ironsoul ( ) posted Thu, 14 December 2017 at 12:41 PM

Not sure if its what you had in mind but here's the parmCallback.py script in the program's runtime C:/Program Files/Smith Micro/Poser 11/Runtime/Python/poserScripts/SampleCallbacks.



FVerbaas ( ) posted Thu, 14 December 2017 at 1:34 PM · edited Thu, 14 December 2017 at 1:38 PM
Forum Coordinator

@Structure: That does it!

An event with kEventCodeParmChanged is raised the first time you spin a dial after selecting it. It is Not raised when you spin the dial again without first selecting another so there is no deluge of events when the dial is spinned in small steps.

One thing I learned here in experimenting: if you do not add a clearEventCallback() in the code to kill that @#$% event handler you created, the messages of the test script will bug you until you kill Poser. LOL!!. Also it does not react to master dial changes.


structure ( ) posted Mon, 18 December 2017 at 7:27 AM
Forum Coordinator

@FVerbaas - glad you managed to get it working .

Locked Out


adp001 ( ) posted Tue, 19 December 2017 at 9:15 AM

You can add a Callback to a parameter (dial): parm.SetUpdateCallback() Then link parameters from bodyactors to this parameter, if a valuechange from this parameter requires update.

Any callback must be disabled before removing an actor or the scene is closed (e.g.: save and close or 'new').




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.