Created
August 31, 2024 07:55
-
-
Save justsh/8171646dbcfdce66874e4760516b4ae3 to your computer and use it in GitHub Desktop.
uses the mel-based print function to print from python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Not all print statements in maya show up in Command Line output bar | |
| # This is an alternative to pymel's display* print statements | |
| import pymel.core as pm | |
| def mprint(*args): | |
| print_args = ("//",) + args + ("//\n",) | |
| pm.mel.mprint(*print_args) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment