Fast Ref
/
API Reference
/
Core
reload_reference()
지정된 슬롯의 레퍼런스 하나만 소스 파일에서 다시 로드합니다.
시그니처
api.reload_reference(slot: int) -> dict
파라미터
| 파라미터 | 타입 | 설명 |
|---|---|---|
slot |
int |
리로드할 슬롯 번호 (0–9) |
반환값
# 성공
{"success": True, "message": str}
# 건너뜀 (converted, missing 등)
{"success": False, "message": str, "skip_reason": str}
# 실패
{"success": False, "message": str, "error": str}
예제
import sys, os, pymxs
_p = os.path.join(pymxs.runtime.getDir(pymxs.runtime.Name("userScripts")), "os_fast_ref_package")
if _p not in sys.path: sys.path.append(_p)
from os_fast_ref.api import FastRefAPI
api = FastRefAPI()
result = api.reload_reference(slot=0)
if result['success']:
print("리로드 완료")
elif 'skip_reason' in result:
print(f"건너뜀: {result['skip_reason']}")
else:
print(f"실패: {result['error']}")