Line count in DATs

Can’t seem to find it so I’m thinking it doesn’t exist yet in TouchDesigner, but with Python in 088, debugging a long DAT can be tiresome when you have to manually count the lines to the error. If there was some kind of switchable (on/off) line counter somewhere inside the DAT, that’d be awesome.

If this does exist and I cant find it, let me know!

HI,

I think that once you get more than ten lines, it’s easier to go into an external editor for debugging and line numbers.

I use notepad++ for this and it’s possible to color the text for python, tscript or GLSL (although not automagically :frowning: )

there’s some discussion aorund the forum if you search ‘notepad’
also here viewtopic.php?f=12&t=2356&p=8209&hilit=notepad#p8209

rod.

I could always use a little more automagic in my life.

I did read great things about notepad++ elsewhere, is there a way to set it always on top once it’s open?

Will give it a whirl as counting 67 downstrokes in a text DAT is definitely not using my brain to it’s fullest.

Hello,

Yes there is an option to set notepad on top. Also, one can set it to minimal mode, for example only to keep the tabs and hide all the menus.

Alternatively, in Touch, an option for line numbers may be to set up indices with an Eval DAT and the $R variable, and to dock the input DAT to it.

Good call on notepad++…a lot nicer to work with long code blocks.