Forum: Poser - OFFICIAL


Subject: Looking for IK off script

uncle808us opened this issue on Oct 03, 2008 · 2 posts


uncle808us posted Fri, 03 October 2008 at 6:41 AM

I'm looking for a script that turns a figures inverse kinrmatics (IK) off with one click.

MacBook Pro OSX El Capitan Ver 10.11.6


PhilC posted Fri, 03 October 2008 at 6:54 AM

turn all IK's OFF

#<br></br>
# IKsOff.py

import poser<br></br>
scene = poser.Scene()

def setIK(flag):<br></br>
 fig = scene.CurrentFigure()<br></br>
 if fig:<br></br>
  IKlist = fig.IkNames()<br></br>
  tally = 0<br></br>
  for i in IKlist:<br></br>
   fig.SetIkStatus(tally, flag) <br></br>
   tally = tally + 1

setIK(0) # 0 = off, 1 = on<br></br>
This is just one of the many example scripts included in my Python for Poser 7 Manuel.

Hope that helps.