View Full Version : Found something undocumented in MEL

11 November 2008, 01:52 PM
Can anybody tell me what's about this:

Create any object that has a "tweak node" in the input history (SkinCluster etc...)
then select a vertex and do this.

ls -sl;

and now this:

ls .sl;

any idea why this works?
Is there a feature in MEL that i missed?

11 November 2008, 04:20 PM
ls is not just for listing nodes. It can be used for listing attributes too. as we all know attributes are prefixed by a period . so you can do things like:

ls "pCube1.translate";

or, more usefully things like:

ls "*.translate";

however, like many other MEL commands, ls is clever enough to know that if you don't give an object name it uses the active selection list.

What you are doing with ls .sl is listing the .sl attribute of the current object(s)


11 November 2008, 05:07 PM

So this should gives the same results?

ls "*.sl";
// Result: defaultRenderQuality.shadows //

ls .sl;
// Result: tweak1.vlist[0].vertex[2] //

11 November 2008, 05:31 PM
well I tried that and it seems that WHATEVER you type in returns the same tweak.vertex result... now I've no idea wtf is going on there, but it's not a feature.. :)

ls .sl;
ls .xxx;
ls .nathan;
ls .thisIsStupid;


11 November 2008, 07:15 PM
yeah, very strange....:shrug:

CGTalk Moderation
11 November 2008, 07:15 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.