deviantART

 
About Me Official Beta Tester Digital Artist Ammut8838/Male/New Zealand Recent Activity Deviant for 2 Years
7 Month Subscription
Statistics 88 Deviations
1,376 Comments
8,373 Pageviews

Newest


Flash Player 8 is required to view SitBack. Get the latest version of Flash Player.

Watchers

Visitors

:iconlithium99:
~Lithium99
Jul 9, 2009
4:33 pm
:iconsergin3d2d:
~sergin3d2d
Jul 9, 2009
12:27 am
:iconcouncilor:
*Councilor
Jul 8, 2009
11:54 pm
:iconbumbleingrey:
~BumbleinGrey
Jul 8, 2009
5:52 am
:iconsusanooamaterasu:
~Susanooamaterasu
Jul 6, 2009
11:39 pm

A short lesson in MEL

Sun May 3, 2009, 4:54 PM
I was reading the 3D forum [link] and someone posted a topic about tips and tricks. I threw a quick little MEL tutorial up on looping, and thought I'd post it here as well. I don't know if it'll help anyone, or if anyone cares really, but here it is:

//---------------------------------

If you need to set an attribute across many objects which doesn't show up in the channelBox (like say 'inheritsTransform' or 'displayHandle' you can set them all with one line of mel.

Select the objects you'd like to effect, then:

for ($target in `ls -sl`) setAttr ($target+".inheritsTransform") 0;

The above is a quick example of a mini loop such that each object inside the loop is refered to as "$target" when its it's turn in the queue. If you had more than one operation you wanted to do on multiple objects, you could use "{}"s to contain your commands such that:

for ($target in `ls -sl`){
setAttr ($target+".inheritsTransform") 0;
setAttr ($target+".displayHandle") 1;
}

The above loop would set inheritsTransforms and displayHandle attributes for everything selected.

  • Mood: Daily Needs
  • Listening to: The 69 Eyes
  • Reading: "A Darkling Plain"
  • Playing: Grown-up

Devious Info

  • Current Residence: Wellington, NZ
  • Tools of the Trade: PS Maya jedit gimp

Stamps

Comments


omg great work man, nice renders

--
PLUSTECH DIARY [link]

NEXT KIRIBAN 30K!
Thank you for the fave and comment! ^^

--
:peace: "I reject your reality and substitute it for my own" :peace:
Amazing gallery!

--
"Hard is nothing, Impossible is everything!"
thanks for the fave ;)

--
art is like a cup of good English tea........you need years of practice to get it right......
Hidden by Owner
hi!! thanks for the faves and the :+devwatch: :hug:

--
^La_liri^

Site Map