AssetInfo — Aspose.3D FOSS for Python API Reference

Example

AssetInfo 은 메타데이터 컨테이너이며 ~에 첨부됩니다 Scene 를 통해 Scene.asset_info (또는 ~에 Node 를 통해 Node.asset_info). 파일의 출처에 대한 정보를 저장합니다: 이를 만든 도구, 측정 단위, 생성/수정 타임스탬프, 그리고 선택적인 축 시스템 설정.

AssetInfo 은(는) 로부터 상속받습니다 A3DObject.

Example: aspose.threed

from aspose.threed import AssetInfo

Example

ExampleExample
AssetInfo()은 모든 필드를 비우거나 기본값으로 구성합니다
AssetInfo(name)은 선택적인 객체 이름을 사용하여 구성합니다

Example

모든 필드는 읽기 및 쓰기 가능한 속성입니다.

저작 및 식별

ExampleExampleExample
titlestr자산의 인간이 읽을 수 있는 제목
subjectstr자산의 주제 또는 토픽
authorstr파일 저자의 이름
keywordsstr자산과 연관된 키워드
revisionstr버전 또는 리비전 문자열
commentstr자유 형식의 코멘트 또는 설명
copyrightstr저작권 고지
urlstr소스 URL 또는 참조 URI

애플리케이션 정보

ExampleExampleExample
application_namestr작성 애플리케이션 이름 (예:., "Blender")
application_vendorstr작성 애플리케이션 공급업체
application_versionstr작성 애플리케이션의 버전 문자열

Example

ExampleExampleExample
creation_time`datetimeNone`
modification_time`datetimeNone`

Example

ExampleExampleExample
unit_namestr측정 단위 이름 (예,., "centimeter", "meter")
unit_scale_factorfloat파일 단위를 미터로 변환하기 위한 스케일 팩터; 기본값은 1.0

좌표계 (스텁 속성)

다음 속성들은 존재하지만 반환됩니다 None 현재 FOSS 릴리스에 포함되어 있습니다. 향후 축 재매핑 지원을 위해 예약되어 있습니다.

ExampleExample
coordinate_system손잡이 규약 (오른손 또는 왼손)
up_vector어느 축이 위를 가리키는가
front_vector어느 축이 앞을 가리키는가
axis_system결합된 축 시스템 설명자
ambient장면 주변 색

Example

from aspose.threed import Scene, AssetInfo
from datetime import datetime

# Load a scene and inspect its metadata
scene = Scene.from_file("model.fbx")
info = scene.asset_info

if info is not None:
    print(info.application_name)    # e.g. "Blender"
    print(info.unit_name)           # e.g. "centimeter"
    print(info.unit_scale_factor)   # e.g. 0.01

# Create metadata for an exported scene
out_scene = Scene()
out_info = AssetInfo()
out_info.title = "My Model"
out_info.author = "Alice"
out_info.application_name = "MyPipeline"
out_info.unit_name = "meter"
out_info.unit_scale_factor = 1.0
out_info.creation_time = datetime.now()
out_scene.asset_info = out_info

out_scene.save("output.glb")

참고

 한국어