View Full Version : Checking for IK exist in Maya

05 May 2007, 07:07 AM
I'm working on my 1st MEL plugin and I've got everthing going smoothly up to this very last minor detail.

I need my program to check if an IK exist before executing the final procedure. The problem is the command:

if(`objExists ("name_of_IK")`)

....does not work. It returns false guarenteed. However this same command works for joints, poly, nurbs etc.

Is there a different command for checking the existance of an IK maya?

Robert Bateman
05 May 2007, 10:47 AM
It works for all nodes that exist in maya. that includes IK effectors, IK root nodes, IK solvers, and all related IK joints. If it returns false the node does not exist. (or you have not used the correct valid name)

05 May 2007, 04:56 PM
Ah I figured out a backup solution already. I had the command search for the IK effector instead of the IK itself. It gave me the results I needed.

Thank you.

CGTalk Moderation
05 May 2007, 04:56 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.