When I use the command with a project position # that is out of range I expect to get "none" but instead I get something like this:tv_ProjectEnumID pos (as defined on TVPaintWiki)
Indicates the identifier specific to a project as a function of its position. The position value is the position of the project in the list (0 for the first project in the list, 1 for the next project and so on). This command returns the identifier of the corresponding project or NONE if there is no project at the specified position. Note that each project identifier is unique.
Code: Select all
tv_ProjectEnumID PJnumber
PJid = result
PJnoID = CUT(PJid, 1, 4)
IF CMP(PJnoID, "none")
PJflag = 0
EXIT
END
The above work around simply tests the first four characters, which works, but it would be better if tv_ProjectEnumID just returned the word "none" when expected, especially because an improper project ID used when selecting a project crashes TVPaint.

Thanks, Sven