Message 1 of 8

Not applicable
01-09-2019
03:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey y'all! I've gotten stuck with a Python issue. evalDeferred is fine, but eval runs me into a maximum recursion limit error every time. Simple example from the script editor:
import sys
print sys.getrecursionlimit()
1000
cmds.eval('print \'hello\'')
# Error: RuntimeError: file C:\Program Files\Autodesk\Maya2018\Python\lib\site-packages\maya\app\commands.py line 19: maximum recursion depth exceeded while calling a Python object #
I've tried setting the recursion limit as high as a couple hundred thousand, and crashed without ever getting the script editor to echo 'hello'.
Is there a setting elsewhere I should look into? Fairly stumped. Thanks!
--John.
Solved! Go to Solution.