Cache on File (캐쉬 파일)

Categories

• Data Access

Description

Reads or writes attribute information to a file. For more information about using caches, see ICE Caching [ICE].
ICE를 이용한 데이터들의 정보를 파일에 기록하거나 파일에서 읽습니다. 캐쉬 사용에 대한 자세한 정보는 헬프파일 ICE Caching 부분을 보세요.

The filename used is resolved based several things including a path, several tokens as well as a frame number. The path is chosen by either one of the path templates in the simulation preferences or a specified alternative path. Files are stored as pathtemplate\modelname\objectname_versionstring_localframe.icecache.
파일이름은 경로와 이름, 프레임번호를 담아 사용하게 됩니다. 경로는 경로 템플릿이나 직정 작성하는 경로든 선택하면 됩니다. 파일 이름은 pathtemplate\modelname\objectname_versionstring_localframe.icecache 방식으로 저장되게 됩니다.

Furthermore this node can be used to blend file cache sequences with each other, merge file cache sequences together and copy cache file sequences from one location to a second one.
또한 이 노드는 시퀀스 캐쉬 파일을 다른 시퀀스 캐쉬 파일과 혼합하거나 합쳐서 사용할 수 있으며, 시퀀스 캐쉬 파일을 다른 곳으로 복사하여 사용 할 수도 있습니다.

Parameters

Template Path
템플릿 경로

Choose the path to use for the cache file. For more information about setting up cache paths, see Setting the Default Paths for Cache Files [ICE].
캐쉬 파일을 사용할 경로 형태를 선택하세요. 캐쉬 경로에 대한 자세한 사항은 도움말 Setting the Default Paths fro Cahce Files를 보세요.

Version String
버전 표기글

Enter any string to identify this version of the cache. By default files are named objectname_versionstring_localframe.icecache.
캐쉬 파일의 버전을 뜻할 수 있는 독립적인 문자를 아무것나 넣으세요. 기본값은 Objectname_Versionstring_localfram.icechche 입니다.

Alternative Path
선택적인 경로

An alternative path to use for the cache file. Set Template Path (above) to Alternative Path and then specify the path here.
캐쉬파일이 저장 혹은 읽을 경로를 직접적으로 선택할 수 있습니다. 이 곳을 사용하기 위해서는 Template path 에 Alternative Path 로 지정되어 있어야합니다.

File Mode
파일 모드

Choose whether the node is reading, writing, or doing nothing.
파일에 대해 읽을 것인지, 기록할 것인지, 아무것도 하지 않을 것인지 선택합니다.

• Do Nothing
아무런 수행을 하지 않음.

• Save to File
파일에 기록 함.

• Read from File
파일에서부터 읽어 옴.

Second Path
두번째 경로

The path for a second file to copy values to or from. 
복사 또는 이동을 하기 위한 두번째(대상)경로. 

Attribute List
속성 리스트

A comma-separated list of extra attributes to cache.
캐쉬에 담을 내용에 대해서 속성들을 ,(콤마)로 구분합니다.

You do not need to include attributes that are required and used by the ICE tree and render tree. Required attributes are always included.
ICE 트리나 렌더트리에서 사용되는 속성들을 포함 할 필요는 없습니다. 

Ports

Inputs

Mute
뮤트

True to prevent the node from being executed.
참인경우 이 노드를 실행합니다. 거짓이 들어오는 경우는 작동하지 않습니다.

In Name
입력 이름

Allows daisy chaining Cache On File nodes. The scene path connected in this port is appended as a prefix to the reference string of the node.
지정한 Cache on File노드를 직접연결방식으로 설정합니다. 이 포트에 연결된 상황에서는 노드의 문자열에 접두어가 추가됩니다.

Frame
프레임

Specifies the frame number to be used to resolve the filename. This is typically driven by a Current Frame node.
프레임번호로 사용할 번호를 입력합니다. 기본적으로 Currrnt Frame 노드로 사용합니다. 

Normalize
정규화

True to normalize the attribute values from a file with the ones in the scene values when blending; otherwise, handle them as additive.
참인 경우 블렌딩된 값들에 대하여 정규화를 합니다.  그렇지 않으면 더해진 값으로 조작합니다.

Blend
블랜드(혼합)

Specifies the amount of blending of this current file cache sequence. Set to 1 the attribute values are simply overwritten; set to 0.5 the values from the file cache sequence are blended with the previous ones by 50%.
현재 시퀀스 캐쉬파일에 대한 블랜드 수치를 지정합니다. 1로 지정될 경우는 덮어쓰게 되고, 0.5로 지정하게되면 50%로 적절히 혼합되게 됩니다.

Overlay
오버레이

True to blend file cache sequences for point clouds by overlaying one file cache sequence with a second one; otherwise, use the particle's ID. When overlaying, particles are linearly removed from the first sequence and added based on the second sequence. The balance is defined by the Blend value of the node.
참인경우 포인트 클라우드를 위한 시퀀스 캐쉬 파일을  다른 시퀀스로부터 덧씌워진 하나의 시퀀스 캐쉬 파일과 혼합합니다. 그렇지 않으면 파티클 ID로 사용합니다.  오버레이를 할때 파티클들은 첫 시퀀스와 둘째 시퀀스로 부터 추가된 순서대로 지워지게 됩니다. 이러한 것은 노드의 블렌드값으로 부터 정의됩니다.

Append
추가

Merge the particles into the existing point cloud when loading multiple file cache sequences; otherwise, blend with each other.
여러개의 시퀀스 파일 캐쉬를 불러드릴때 실제적인 포인트 클라우드의 파티클과 병합 합니다. 그렇지 않으면 각각 블랜드 됩니다.
 

Outputs

Execute
실행

Output port to connect to execute the node.
실행 연결을 위한 출력 포트.

Out Name

Allows daisy chaining Cache On File nodes. Connect this port into the In Name port of another Cache On File to prefix the reference of the other node with the reference of this node.
다른 Cache On file 노드에 직렬연결을 허용합니다.  이 포트를 이 노드의 참조와 다른 노드의 참조에 접두어를 붙이기 위해 다른 노드의 In Name에 연결하세요

Examples

[ex.1] 파티클의 캐쉬 파일 생성 및 활용
Cache_On_File_ex1.jpg
Cache on File노드는 파티클의 계산을 파일로 기록함으로써 재계산없이 빠르게 접근, 활용할 수 있는 노드입니다. 위의 예제에서 활용하는 방법은 파티클을 생성후 Cache On File노드는 꺼내어 Ice Tree에 연결해주면 됩니다. 그럼 Current Frame이 딸려 나오는데 이것은 시퀀스 파일 기록을 위해 프레임 숫자를 입력하는 것입니다. File Mode가 캐쉬 파일의 활용을 결정 짓는데 기본적으로는 'Do Nothing'으로 아무런 수행을 하지 않습니다. Save to File인 경우는 방출되는 파티클들을 기록하며 Read from File을 하면 파일로 부터 파티클 정보를 읽어옵니다. 이때에는 Cache On File을 제외한 모든 노드를 끊어주면 됩니다.

Written by CGnDEV
Based on SOFTIMAGE|XSI HELP & Digital-Tutors's ICE Nodes Reference Library.
from http://cgndev.com