Tv guidelineenum

From TVPaintWiki
Revision as of 13:41, 30 August 2013 by Madsjuul (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<<<George<<<Command Reference<<<Guidelines


//returns number < 0 if error
//returns the index of the found guideline at the given position in the whole list
//returns "none" if no guideline found
//in this first case, the returned index = given position
tv_guidelineenum position
//returns the index of the found guideline at the given position in the list made of the wanted type
//returns "none" if no guideline found
tv_guidelineenum position "line"|"circle"|"segment"|"grid"|...
e.g.: list of guidelines
- 0 line
- 1 segment
- 2 circle
- 3 circle
- 4 segment
- 5 line
tv_guidelineenum 0 "circle" -> 2
tv_guidelineenum 1 "circle" -> 3
tv_guidelineenum 2 "circle" -> "none"
tv_guidelineenum 0 "segment" -> 1
tv_guidelineenum 1 "segment" -> 4