THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/08/2005 at 10:11, xxxxxxxx wrote:
Sorry to say but you are going to have the same problems as with the currentstatetoobject. That function is running during the cache build, which means the spline deform may not be available (it depends on the hierarchy, it may have been built before your object is called).
You would have to do the same sort of workaround as with the currentstatetoobject, grabbing it before the cache build or dumping a clone of the spline into a dummy document.
The cache is not actually intended to be accessed other than in very specific parts of the pipeline (drawing is what it is actually for). Generally it can be very unsafe to try and access the cache as they could either be currently building, not available or invalid.
Making code work with the generators or deformed states is not easy (workarounds and overhead), hence why much of CINEMA actually only directly uses polygons or splines.