Forum: Poser Python Scripting


Subject: I need a shortcut key script example

Uncanny_Film opened this issue on Feb 10, 2022 ยท 10 posts


Uncanny_Film posted Tue, 15 March 2022 at 1:29 PM

FVerbaas posted at 12:37 PM Fri, 25 February 2022 - #4435143

You may want to try the below. 

I have set the increment to 15 degrees: (par.SetValue(val+15.0) so you see more easily the effect. Trust you can change this to your liking.
note this approach does not respect limits.

sc = poser.Scene()
try:
    act = sc.CurrentActor()
    try:
        par = act.Parameter('yRotate')
        try:
            val = par.Value()
            par.SetValue(val+15.0)
            sc.DrawAll()
        except:
            pass           
    except:
        pass
except:
    pass




Thank you. this is perfect.

Is there a document with all the python script command that poser uses?






Win10 - AMD 2nd Gen Ryzen Threadripper 2950X, 16-Core, 32 Thread 4.4 GHz - 128GB Ram - X2 GeForce RTX 3060 Ti - 3D-connexion  

Poser 12 | Octane Render |  Real-Flow | 3DCoat | Speed Tree | Adobe Premiere  |  Adobe After Effects |  Adobe Audition |  Adobe Photoshop