I'm working with tv_brushrestore and tv_savebrushanim/tv_loadbrushanim in order to store and later reload a custom brush. Can anyone help with the proper way to retrieve the settings. The wiki entry is not that clear so here is how I would expect it to work:
Code: Select all
//store tool settings
tv_brushrestore backup
toolinfo = result
brushfile = "~/Library/tvpaint animation 11/default/brush storage/b000000.png"
tv_saveMode "PNG"
tv_savebrushAnim '"'brushfile'"'
...
//reload settings:
tv_cmd toolinfo "OR" tv_brushrestore toolinfo
tv_loadBrushAnim '"'brushfile'"'
Code: Select all
PARSE toolinfo tv_restorebrush mode modeVAL width widthVAL height heightVAL step stepVAL opacity opacityVAL size sizeVAL shift shiftVAL position positionVAL jitter jitterVAL angle angleVAL stamp stampVAL handle handleXVAL handleYVAL origine origineXVal origineYVAL rotate rotateVAL flip_x flip_xVAL flip_y flip_yVAL optimize optimizeVAL opaque opaqueVAL border borderVAL border_color bcR bcG bcB dry dryVAL screenwrap screenwrapVAL projection projectionVAL subpixel subpixelVAL anim animVAL animinvert animinvertVAL smear smearVAL wetprofile wetProfileVAL copacity copacityVAL csize csizeVAL cjitter cjitterVAL cangle cangleVAL cshift cshiftVAL csmear csmearVAL
tv_restorebrush mode modeVAL
tv_restorebrush width widthVAL
tv_restorebrush height heightVAL
tv_restorebrush step stepVAL
tv_restorebrush opacity opacityVAL
tv_restorebrush size sizeVAL
tv_restorebrush shift shiftVAL
tv_restorebrush position positionVAL
tv_restorebrush jitter jitterVAL
tv_restorebrush angle angleVAL
tv_restorebrush stamp stampVAL
tv_restorebrush handle handleXVAL handleYVAL
tv_restorebrush origine origineXVal origineYVAL
tv_restorebrush rotate rotateVAL
tv_restorebrush flip_x flip_xVAL
tv_restorebrush flip_y flip_yVAL
tv_restorebrush optimize optimizeVAL
tv_restorebrush opaque opaqueVAL
tv_restorebrush border borderVAL
tv_restorebrush border_color bcR bcG bcB
tv_restorebrush dry dryVAL
tv_restorebrush screenwrap screenwrapVAL
tv_restorebrush projection projectionVAL
tv_restorebrush subpixel subpixelVAL
tv_restorebrush anim animVAL
tv_restorebrush animinvert animinvertVAL
tv_restorebrush smear smearVAL
tv_restorebrush wetprofile wetProfileVAL
tv_restorebrush copacity copacityVAL
tv_restorebrush csize csizeVAL
tv_restorebrush cjitter cjitterVAL
tv_restorebrush cangle cangleVAL
tv_restorebrush cshift cshiftVAL
tv_restorebrush csmear csmearVAL
Thanks folks