View Single Post
# 2 17-07-2004 , 02:10 AM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Hi Suzie. Maybe the listConnections command could be used to determine if a given channel is connected to anything (eg an animation curve, expression or sometehing else). Let's say that you want to test if the rotateZ of a nurbsSphere1 is controlled by something:

Code:
{
	string $sAttrConn[]= `listConnections -source 1 -destination 0 nurbsSphere1.rotateZ`;

	if( size($sAttrConn) > 0 )
		print("nurbsSphere1.rotateZ is controlled by something");
	else
		print("nurbsSphere1.rotateZ is not controlled by anything");
}


Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!