home *** CD-ROM | disk | FTP | other *** search
- /* $VER: Tutorial.rexx 4.4 (23.2.97) */
- /* Tutorial */
-
- parse upper arg arg1
-
- if (arg1="A1") | (arg1="ALL") then do
- address command 'run execute MPRender-prefs'
- address command "waitforport MPRENDERPREFS"
- end
- if (arg1="ALL") then do
- address command "wait 4"
- end
- if (arg1="A2") | (arg1="ALL") then do
- address mprenderprefs 'defaults'
- address mprenderprefs 'setattr "P_re Script" "Rexx/PreAll.MPM"'
- end
- if (arg1="A3") | (arg1="ALL") then do
- address mprenderprefs 'setattr "Save _Format" "BW16"'
- end
- if (arg1="A4") | (arg1="ALL") then do
- address mprenderprefs 'save'
- end
- if (arg1="B1") | (arg1="ALL") then do
- address command 'run MPMorph'
- address command "waitforport MPMORPH"
- end
- if (arg1="ALL") then do
- address command "wait 4"
- end
- if (arg1="B2") | (arg1="ALL") then do
- address mpmorph 'setattr file1 Tutorial/cat.pic'
- end
- if (arg1="B3") | (arg1="ALL") then do
- address mpmorph 'setattr file2 Tutorial/girl.pic'
- end
- if (arg1="B4") | (arg1="ALL") then do
- address mpmorph 'setattr frames 3'
- end
- if (arg1="B6") | (arg1="ALL") then do
- address mpmorph 'setattr output ram:pic.%03ld'
- end
- if (arg1="ALL") then do
- address command "wait 4"
- end
- if (arg1="B7") | (arg1="ALL") then do
- address mpmorph 'editpoints'
- end
- if (arg1="ALL") then do
- address command "wait 4"
- end
- if (arg1="B8") | (arg1="ALL") then do
- address mpmorph 'addpoint x1=62 y1=101 x2=60 y2=105'
- address mpmorph 'addpoint x1=96 y1=104 x2=119 y2=117'
- address mpmorph 'addpoint x1=170 y1=112 x2=164 y2=114'
- address mpmorph 'addpoint x1=198 y1=98 x2=190 y2=109'
- address mpmorph 'addpoint x1=187 y1=119 x2=188 y2=125'
- address mpmorph 'addpoint x1=182 y1=91 x2=178 y2=105'
- address mpmorph 'addpoint x1=82 y1=91 x2=89 y2=100'
- address mpmorph 'addpoint x1=78 y1=125 x2=85 y2=126'
- address mpmorph 'addpoint x1=0 y1=0 x2=0 y2=0'
- address mpmorph 'addpoint x1=0 y1=255 x2=0 y2=255'
- address mpmorph 'addpoint x1=255 y1=0 x2=255 y2=0'
- address mpmorph 'addpoint x1=255 y1=255 x2=255 y2=255'
- address mpmorph 'addpoint x1=81 y1=111 x2=91 y2=118'
- address mpmorph 'addpoint x1=185 y1=110 x2=178 y2=119'
- address mpmorph 'addpoint x1=181 y1=100 x2=177 y2=113'
- address mpmorph 'addpoint x1=81 y1=100 x2=88 y2=109'
- address mpmorph 'addpoint x1=67 y1=114 x2=73 y2=119'
- address mpmorph 'addpoint x1=91 y1=118 x2=102 y2=124'
- address mpmorph 'addpoint x1=91 y1=95 x2=101 y2=102'
- address mpmorph 'addpoint x1=69 y1=91 x2=76 y2=102'
- address mpmorph 'addpoint x1=172 y1=100 x2=170 y2=107'
- address mpmorph 'addpoint x1=191 y1=93 x2=185 y2=106'
- address mpmorph 'addpoint x1=195 y1=112 x2=196 y2=116'
- address mpmorph 'addpoint x1=175 y1=121 x2=173 y2=123'
- address mpmorph 'addpoint x1=132 y1=118 x2=140 y2=118'
- address mpmorph 'addpoint x1=116 y1=149 x2=126 y2=142'
- address mpmorph 'addpoint x1=148 y1=151 x2=158 y2=145'
- address mpmorph 'addpoint x1=147 y1=183 x2=160 y2=168'
- address mpmorph 'addpoint x1=119 y1=184 x2=117 y2=171'
- address mpmorph 'addpoint x1=134 y1=194 x2=140 y2=182'
- address mpmorph 'addpoint x1=101 y1=223 x2=100 y2=196'
- address mpmorph 'addpoint x1=164 y1=225 x2=159 y2=195'
- address mpmorph 'addpoint x1=129 y1=229 x2=136 y2=215'
- address mpmorph 'addpoint x1=129 y1=217 x2=134 y2=192'
- address mpmorph 'addpoint x1=125 y1=255 x2=125 y2=255'
- address mpmorph 'addpoint x1=255 y1=103 x2=255 y2=103'
- address mpmorph 'addpoint x1=0 y1=102 x2=0 y2=102'
- address mpmorph 'addpoint x1=128 y1=0 x2=128 y2=0'
- address mpmorph 'addpoint x1=80 y1=230 x2=83 y2=228'
- address mpmorph 'addpoint x1=55 y1=188 x2=55 y2=188'
- address mpmorph 'addpoint x1=40 y1=111 x2=40 y2=111'
- address mpmorph 'addpoint x1=221 y1=104 x2=207 y2=114'
- address mpmorph 'addpoint x1=206 y1=188 x2=186 y2=173'
- address mpmorph 'addpoint x1=88 y1=42 x2=88 y2=42'
- address mpmorph 'addpoint x1=177 y1=46 x2=177 y2=46'
- address mpmorph 'addpoint x1=117 y1=230 x2=117 y2=210'
- address mpmorph 'addpoint x1=146 y1=230 x2=151 y2=208'
- address mpmorph 'addpoint x1=172 y1=234 x2=166 y2=206'
- address mpmorph 'addpoint x1=128 y1=242 x2=127 y2=240'
- address mpmorph 'addpoint x1=188 y1=255 x2=188 y2=255'
- address mpmorph 'addpoint x1=214 y1=70 x2=214 y2=70'
- end
- if (arg1="ALL") then do
- address command "wait 4"
- end
- if (arg1="B8") | (arg1="ALL") then do
- address mpmorph 'triangulate force'
- end
- if (arg1="ALL") then do
- address command "wait 4"
- end
- if (arg1="B9") | (arg1="ALL") then do
- address mpmorph 'saveas filename=ram:test.points'
- end
- if (arg1="B10") | (arg1="ALL") then do
- address mpmorph 'quit'
- end
- if (arg1="C1") | (arg1="ALL") then do
- address command 'mprender files=ram:test.points'
- end
-