Skip to content

Instantly share code, notes, and snippets.

@raganmd
Last active December 12, 2017 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raganmd/be4e3edd2a195e596730edc38ef1e2b3 to your computer and use it in GitHub Desktop.
Save raganmd/be4e3edd2a195e596730edc38ef1e2b3 to your computer and use it in GitHub Desktop.
Example of using doc strings in a module in TouchDesigner
# first let's clear the text port to make sure we're starting fresh
clear()
# Here we're printing out the doc strings for multi_by_two
print( "The Doc Strings for multi_by_two are:" )
print( '\n' )
print( mod( 'text_simple_reutrn' ).multi_by_two.__doc__ )
# Here we're printing out the doc strings for lotic_test
print( "The Doc Strings for logic_test:" )
print( '\n' )
print( mod( 'text_simple_reutrn' ).logic_test.__doc__ )
# Here we're printing out the doc strings for logic_test_two
print( "The Doc Strings for logic_test_two:" )
print( '\n' )
print( mod( 'text_simple_reutrn' ).logic_test_two.__doc__ )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment