Mon, Dec 23, 6:53 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Dec 23 1:20 pm)



Subject: Looking for IK off script


uncle808us ( ) posted Fri, 03 October 2008 at 6:41 AM · edited Mon, 18 November 2024 at 4:29 PM

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.


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.