API Guide > Example Plug-ins >

# Example stand-alone application descriptions

## asciiToBinary

This command takes a list of Maya scene files as arguments. For each one, the file is loaded and if the file was in Maya Ascii format, it is written in Maya Binary format to a file with the same name that the extension is replaced with string ".mb" (or at the end if the filename has no extension).

## helloWorld

Running this application will load the Maya DSOs, initialize everything, then simply print "hello World" on standard output. This example now uses the MLibrary::initialize() method that allows the displaying of command console output.

## readAndWrite

This command takes a list of Maya scene files as arguments. For each one, the file is loaded and written without changes to a file with the same name except that the string ".updated" is inserted just before the extension in the filename (or at the end if the filename has no extension).

This command is actually useful because as a side effect of the "read then write" operation, the given scene files will be upgraded to the latest Maya file format.

## surfaceCreate

This command takes no arguments. It creates a a NURBS surface by supplying its own CVs and knots, then writes the result out to a file called surf1.ma.

## surfaceTwist

This command takes no arguments. It opens a files called surf1.ma and applies the twist function to all surfaces in that file. The modified scene is then written out to a file called surf2.ma.