XMGED - Sample Source File

# Sample Source File

The following commands set up the aliases necessary to build the tin woodsman simply by typing buildwoody. These kinds of commands can be stored in a file and read into mged using the source command.

    alias woodytitle title A Tin Woodsman
    alias hat in $1 rcc 0 0 0 2 0 0 1; sed $1; press srot; p 0 45 90; press tgc_scd;\
    	p .1; press stran; p 0 2.2 0; press accept; cp $1 $2; sed $2;\
    	press tgc_sab; p .1; press stran; p 0 4.2 0; press accept
    alias torso in $1 rpp -1 1 -1 1 -1 1; sed $1; extrude 2367 3; press accept
    alias head in $1 sph 0 2 0 1
    alias collar in $1 tor 0 0 0 0 1 0 1 .2; sed $1; press tor_sr2; p .1; press stran;\
    	p 0 1 0; press accept
    alias arm in $1 ellg 0 0 0 1 0 0 0 0.5 0 0 0 0.5; sed $1; press srot; p 0 45 90;\
    	press ell_sb; p .25; press ell_sc; p .25; press accept
    alias leg in $1 ellg 0 0 0 1 0 0 0 0.5 0 0 0 0.5; sed $1; press srot; p 0 45 90;\
    	press accept
    alias l_arm arm l_uarm; sed l_uarm; press stran; p -1.3 0 0; press accept;\
    	cp l_uarm l_larm; sed l_larm; press stran; p -1.3 -2 0; press accept
    alias r_arm arm r_uarm; sed r_uarm; press stran; p 1.3 0 0; press accept;\
    	cp r_uarm r_larm; sed r_larm; press stran; p 1.3 -2 0; press accept
    alias l_leg leg l_uleg; sed l_uleg; press stran; p -0.5 -3 0; press accept;\
    	cp l_uleg l_lleg; sed l_lleg; press stran; p -0.5 -5 0; press accept
    alias r_leg leg r_uleg; sed r_uleg; press stran; p 0.5 -3 0; press accept;\
    	cp r_uleg r_lleg; sed r_lleg; press stran; p 0.5 -5 0; press accept
    alias rtorso r $1 u $2
    alias rlimbs r limbs.r u l_uarm u l_larm u r_uarm u r_larm u l_uleg u l_lleg\
    	u r_uleg u r_lleg
    alias rhat r $1 u $2 - $3 u $4 - $2
    alias rcollar r $1 u $2
    alias rhead r $1 u $2
    alias createlimbs l_arm; r_arm; l_leg; r_leg;
    alias materhat mater $1 plastic sh=100 35 107 142 0
    alias matertorso mater $1 plastic sh=10 95 159 159 0
    alias materlimbs mater $1 plastic sh=10 255 127 0 0
    alias matercollar mater $1 plastic sh=100 255 200 160 0
    alias materhead mater $1 plastic sh=100 200 120 60 0
    alias gman g man.g hat.r noggin.r collar.r body.r limbs.r
    alias buildwoody woodytitle; hat hat hattop; torso body; head noggin; createlimbs;\
    	collar collar; rhead noggin.r noggin; rtorso body.r body; rlimbs;\
    	rcollar collar.r collar; rhat hat.r hat collar hattop; materhat hat.r;\
    	matertorso body.r; matercollar collar.r; materlimbs limbs.r;\
    	materhead noggin.r; gman

Note that the '\' line continuations are for formatting purposes only. They are not yet understood by mged.

up prev next