Fast Ref
/
API Reference
/
Core
remove_reference()
지정된 슬롯의 레퍼런스를 제거합니다. 해당 레퍼런스의 노드, 레이어, SelectionSet이 씬에서 삭제됩니다.
시그니처
api.remove_reference(slot: int) -> dict
파라미터
| 파라미터 | 타입 | 설명 |
|---|---|---|
slot |
int |
제거할 슬롯 번호 (0–9) |
반환값
{
"success": True,
"message": str,
}
예외
| 예외 | 조건 |
|---|---|
ValueError |
슬롯 번호가 범위를 벗어나거나 비어 있을 때 |
예제
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.remove_reference(slot=2)
print(result['message'])
주의: 확인 다이얼로그 없이 즉시 제거됩니다. 슬롯 번호를 반드시 확인 후 호출하세요.