Challenges

Rigging101 » Challenges

MEL (3 posts)

About This Topic

Tags

No tags yet.

  1. baljeetbhartiya

    offline
    Member
    Posted 7 years ago
    #

    What is flags.

  2. zethwillie

    offline
    Member
    Posted 7 years ago
    #

    flags modify the command your using. Make it more specific or add more control.
    Ex. If you wanted to select an object called sphere, you could use "select sphere". But flags would make the command more specific to what you want, like "select -add sphere" (-add is the flag), which would add the sphere to whatever other selections you had, or "select -tgl sphere" which would toggle the seelction of the sphere on/off, etc. "select" is the command, anything with a dash(-) is the flag. Under Maya help menu look at the Mel Command reference. It will tell you what flags go with each command.

  3. goose0403

    offline
    Member
    Posted 6 years ago
    #

    Flags may be understood as parameters or properties or attribute or syntax objects for a given command.
    if we include "-" before any word ,Maya understands it as a syntax object which might definitely be an attribute or a parameter.
    like if we write "name" ,Maya will understand it as a variable or an object.But if we write "-name" , it understands that it is referring to the name attribute of the node.
    for -example:

    //To create a Nurbssphere whose name is Ball.
    Sphere -name "Ball";

    But if we write: Sphere name "Ball";
    we will definitely run into an error that says:
    Error: No object matches name: name.

Reply

You must log in to post.

Rigging101 » Challenges
1,099 posts in 307 topics over 110 months by 188 of 8,226 members. Latest: fashionpvp, d2q4p5z2j, gasheldonl