NavHeader
journalHeader

Tuesday, January 8, 2008

jbGraphSetDrivenAttribute

Last fall I wrote this script cause I was sick and tired of having to manually filter the graph editor with the curves I wanted to edit when tweaking set driven keys on a facial rig. It was useful for me, maybe it will be for you. Eventually I'll add a section of the site for the few scripts I write. And cause I love icons....




/*
TITLE: jbGraphSetDrivenAttribute
VERSION: 1.0
AUTHOR:Josh Burton
DATE: October 26, 2007

DESCRIPTION:
Script for use with setting up set driven key poses. Sometimes you wanna see all the curves
of one attribute in the graph editor and not manually select them.

HOW TO USE:
1. Select an attribute
2. Run script

LIMITATIONS:
- Select an attribute with set driven keys connected

HISTORY:
10.26.07 - BIRTH!
*/

global proc jbGraphSetDrivenAttribute() {
global string $gChannelBoxName;
string $selected[] = `ls -sl`;
string $selAttr[] = `channelBox -q -sma $gChannelBoxName`;
string $fullAttr = $selected[0] + "." + $selAttr[0];
select `listConnections -p true $fullAttr`;
}
jbGraphSetDrivenAttribute;
GraphEditor;

1 comment:

Quaid oralious said...

Excellent, helped me find a broken driven key that was making an object translate when it shouldnt.
Thanks!

All the stuff on this site is 2000 - by Josh Burton...unless otherwise noted. All rights reserved.