stzaske
07-22-2003, 03:28 PM
Bentlama recently distributed a nice MEL script that finds all joints in a scene, and changes the IK attribute for each joint to "STICKY". A nice script for people using 4.5 scenes in Maya 5.
What I find confusing though, is that to run his script, you don't execute it, you source it. There may be other examples of this, but it is the first time I've seen it. "Sourcing" his script seems to run it, but sourcing other scripts doesn't seem to run them.
I've purchased 2 of the 3 available MEL books, and in each, Sourcing is only slightly mentioned. As a MEL newbie, sourcing has come to mean (to me) just a hassle of a command. Something I do (have to do) EVERY time I run or test my script.
Can someone explain to me why Bentlama's wrote his script in such a manor, and what the benefit would be?
Question 2, how/why does sourcing his script cause it to run?
-=STZ=-
What I find confusing though, is that to run his script, you don't execute it, you source it. There may be other examples of this, but it is the first time I've seen it. "Sourcing" his script seems to run it, but sourcing other scripts doesn't seem to run them.
I've purchased 2 of the 3 available MEL books, and in each, Sourcing is only slightly mentioned. As a MEL newbie, sourcing has come to mean (to me) just a hassle of a command. Something I do (have to do) EVERY time I run or test my script.
Can someone explain to me why Bentlama's wrote his script in such a manor, and what the benefit would be?
Question 2, how/why does sourcing his script cause it to run?
-=STZ=-
