What's wrong with my script? Test it. It works right, but if you turn the last paramter on... Maya says the constraint node doesn't exists (but it exists!) and so can't delete it!

1001 thx

svenip

02 February 2004, 07:33 PM

first off you've tried to delete the constraint twice in your script and you did create an array then you've created the constraint but tried to delete the array object instead of the first element of the array

here's the new one (which works for me here)

svenip

02 February 2004, 07:34 PM

first off you've tried to delete the constraint twice in your script and you did create an array then you've created the constraint but tried to delete the array object instead of the first element of the array

// Delete constraint nodes if turned on
if ($deleteConstraintNodesSwitcher)
{

delete $geometryConstraintNode[0] $normalConstraintNode;
}

Nicool

02 February 2004, 10:16 PM

Oh, yeah... What a dummy! I forgot to delete a line. I'll study this array created for constraint. Thanks

CGTalk Moderation

01 January 2006, 11:00 AM

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.

Follow Us On:

The CGSociety

The CGSociety is the most respected and accessible global organization for creative digital artists. The CGS supports artists at every level by offering a range of services to connect, inform, educate and promote digital artists worldwide. More about us on TheArtSociety.com