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]. |
|
Version String |
Enter any string to identify this version of the cache. By default files are named objectname_versionstring_localframe.icecache. |
|
Alternative Path |
An alternative path to use for the cache file. Set Template Path (above) to Alternative Path and then specify the path here. |
|
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. |
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. |
|
Frame |
Specifies the frame number to be used to resolve the filename. This is typically driven by a Current Frame node. |
|
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%. |
|
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. |
|
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. |
Examples
[ex.1] 파티클의 캐쉬 파일 생성 및 활용
Cache on File노드는 파티클의 계산을 파일로 기록함으로써 재계산없이 빠르게 접근, 활용할 수 있는 노드입니다. 위의 예제에서 활용하는 방법은 파티클을 생성후 Cache On File노드는 꺼내어 Ice Tree에 연결해주면 됩니다. 그럼 Current Frame이 딸려 나오는데 이것은 시퀀스 파일 기록을 위해 프레임 숫자를 입력하는 것입니다. File Mode가 캐쉬 파일의 활용을 결정 짓는데 기본적으로는 'Do Nothing'으로 아무런 수행을 하지 않습니다. Save to File인 경우는 방출되는 파티클들을 기록하며 Read from File을 하면 파일로 부터 파티클 정보를 읽어옵니다. 이때에는 Cache On File을 제외한 모든 노드를 끊어주면 됩니다.
| 번호 |
|
최근 수정일 |
|---|---|---|
![]() |
Cache on File (캐쉬 파일) | 2008-11-06 18:21 |