Extension: omni.kit.clipboard-1.0.5 |
Documentation Generated: Dec 17, 2024 |
Usage Examples#
Copy String to Clipboard#
from omni.kit.clipboard import copy
# Copy a string into the system clipboard
text_to_copy = "Hello, Clipboard!"
copy(text_to_copy)
Paste String from Clipboard#
from omni.kit.clipboard import paste
# Paste a string from the system clipboard
pasted_text = paste()
print(f"Text pasted from clipboard: '{pasted_text}'")