jochen:screenshots
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
jochen:screenshots [2016/05/27 20:46] – added satsetcolor jochen | jochen:screenshots [2016/05/27 22:42] – added overall script jochen | ||
---|---|---|---|
Line 146: | Line 146: | ||
Whereas the image_filename can of course be a sprintf(...) expression within a loop. The " | Whereas the image_filename can of course be a sprintf(...) expression within a loop. The " | ||
+ | |||
+ | ===== Putting it all together ===== | ||
+ | So, an entire script could look like this: | ||
+ | |||
+ | <code matlab>% files to load/ | ||
+ | lh_srf = '/ | ||
+ | rh_srf = '/ | ||
+ | |||
+ | % VMP (will be sampled on surfaces) | ||
+ | stast_vmp = '/ | ||
+ | |||
+ | % load objects (without loading again) | ||
+ | x = xff; | ||
+ | try | ||
+ | lh = x.Document(lh_srf); | ||
+ | catch | ||
+ | lh = xff(lh_srf); | ||
+ | end | ||
+ | try | ||
+ | rh = x.Document(rh_srf); | ||
+ | catch | ||
+ | rh = xff(rh_srf); | ||
+ | end | ||
+ | try | ||
+ | vmp = x.Document(stats_vmp); | ||
+ | catch | ||
+ | vmp = xff(stats_vmp); | ||
+ | end | ||
+ | |||
+ | % adding all to viewer | ||
+ | vmp.Browse; | ||
+ | lh.Browse; | ||
+ | rh.Browse; | ||
+ | |||
+ | % set in scenery | ||
+ | neuroelf_gui(' | ||
+ | |||
+ | % then sample the stats | ||
+ | [lhsmp, rhsmp] = neuroelf_gui(' | ||
+ | |||
+ | % undock the window | ||
+ | [hSat, tags, iSat] = neuroelf_gui(' | ||
+ | |||
+ | % resize satellite | ||
+ | neuroelf_gui(' | ||
+ | |||
+ | % set color (to white) | ||
+ | neuroelf_gui(' | ||
+ | |||
+ | % loop over a rotation (create movie frames) | ||
+ | mfc = 1; | ||
+ | for fc = [90:360, 1:90] | ||
+ | | ||
+ | % set position | ||
+ | neuroelf_gui(' | ||
+ | | ||
+ | % screenshot | ||
+ | neuroelf_gui(' | ||
+ | | ||
+ | % increase counter | ||
+ | mfc = mfc + 1; | ||
+ | end | ||
+ | |||
+ | % delete satellite | ||
+ | neuroelf_gui(' | ||
+ | |||
+ | % unload created objects | ||
+ | rhsmp.ClearObject; | ||
+ | lhsmp.ClearObject;</ |
jochen/screenshots.txt · Last modified: 2016/05/27 22:48 by jochen