- Complete rewrite with beautiful Rich TUI interface - Interactive and CLI modes for flexibility - Robust error handling with clear, helpful messages - Gap filling with linear interpolation support - Coordinate system transforms (pixels/normalized) - Auto-generated output filenames from input - Configurable resolution and Nuke versions - Batch processing support via CLI - Comprehensive documentation in Scripts/README_CONVERTER.md - Updated main README.md with Scripts section
20 lines
455 B
Python
20 lines
455 B
Python
import sys
|
|
import subprocess
|
|
|
|
|
|
def __optim_args_from_interpreter_flags():
|
|
"""Return a list of command-line arguments reproducing the current
|
|
optimization settings in sys.flags."""
|
|
args = []
|
|
value = sys.flags.optimize
|
|
if value > 0:
|
|
args.append("-" + "O" * value)
|
|
return args
|
|
|
|
|
|
_optim_args_from_interpreter_flags = getattr(
|
|
subprocess,
|
|
"_optim_args_from_interpreter_flags",
|
|
__optim_args_from_interpreter_flags,
|
|
)
|