On 24/01/2016 at 03:15, xxxxxxxx wrote:
Cinema 4D Version: R17
Platform: Windows ;
Language(s) : C++ ;
I have the following scene:
- Polygonized plane with a collision deformer pointing to the above sphere.
- a cube with a bending deformer
The plane covers the sphere like a blanket.
Now, i need to create a clone of this document, so i use:
- The GetClone with COPYFLAGS_DOCUMENT.
- On the cloned document, i use the execute passes with true in animation, expressions and cache parameters.
After traversing the nodes with GetCache/GetDeformCache recursion method,
i notice that the plane stays horizontal instead of covering the sphere (loses its cache maybe ?).
However, the cube preserves its deformable state.
If i also use the Hierarchy class and call Run on the cloned document,
the plane appears correctly, while the sphere disappears and the cube appears broken.
So, my question is: How do i have to use the GetClone, ExecutePasses and the Hierarchy class to produce
the correct cached cloned document exactly as it appears in the viewport ?
Thank you for your time.