python main.py --amount 100- Panning by left-click + drag
- Scale by rotating the mouse wheel
| prod = NodegraphAPI.GetGeometryProducer() | |
| root = prod.getRootProducer() | |
| cel = root.getAttribute('collections.test.cel').getValue() | |
| node = NodegraphAPI.GetNode('CollectionCreate') | |
| collector = Widget.CollectAndSelectInScenegraph(str(cel), '/root/world/geo') | |
| result = collector.collectAndSelect(select=False, node=node) |
| import re | |
| def replace(obj): | |
| print(obj.groups()) | |
| if obj.group(0) == '\'': | |
| return '"' | |
| if obj.group(0) == '"': | |
| return '\'' | |
| if obj.group(0) == '"""': |
| from functools import wraps | |
| import logging | |
| logger = logging.getLogger(__name__) | |
| def timed(func): | |
| """This decorator prints the execution time for the decorated function.""" | |
| @wraps(func) | |
| def wrapper(*args, **kwargs): | |
| start = time.time() |