print ()
is the output method used in Python, but in TouchDesigner you can use a function called debug ()
instead where you can use print ()
.
With the output, debug ()
can see where it was called from which operator and on which line.
This is useful in most cases when debugging with TouchDesigner.
--Comparison of print and debug
Troubleshooting_in_TouchDesigner#Command:_debug
Sometimes I write an infinite loop, or something I don't understand causes the file to crash or not open.
When a crash occurs, CrashAutoSave.toe
is automatically generated, but you can also start the toe file you created in safe mode by prefixing the file name with CrashAutoSave.
.
If you start it in safe mode, you can check and correct the contents without running any processing without the project. After modifying the contents, you can fix the file that could not be opened by removing CrashAutoSave.
from the file name, saving it, and reopening the file.
When you open the file with CrashutoSave.
, the dialog like the image below will appear first.
When you press OK to start Touch Designer, the timeline does not run and the word Safe Mode appears in the center of the screen. Since you can edit the operator etc. in this state, you can correct the defective part, extract only the necessary part and copy and paste it to another file.
Troubleshooting_in_TouchDesigner#Crash_Auto_Save Safe Mode
Error DAT and Error Dialog
Lists errors and warnings in your project
Dialogs -> Errors
op Find DAT
You can search for operators in the project by specifying filters etc. There are many values that can be taken
It can be used to check if it works with Non-Commercial when distributing sample files etc. to those who do not have a license at workshops. Since it is not possible to change licenses quickly, it is easier to limit from the script.
Non-commercial license restrictions
app.addNonCommercialLimit('password') #Limits
app.removeNonCommercialLimit('password') #Release
Resolution limit
app.addResolutionLimit(1280, 720, 'secret123') #Limits
app.removeResolutionLimit('secret123') #Release
Click here for details → https://docs.derivative.ca/App_Class#Methods
-Official Wiki Troubleshooting -TouchDesigner Performance Measurement -TouchDesigner python script and CHOP Execute execution order
Recommended Posts