Forum: Poser Python Scripting


Subject: I need a shortcut key script example

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


FVerbaas posted Fri, 25 February 2022 at 12:37 PM Forum Coordinator

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