Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/07/2011 at 05:58, xxxxxxxx wrote:
Hy there,
I wondered if it is possible to read out the "deformed" values of a mesh having a deformer. I've seen that the PointOperator from XPresso is able to read out those values (ie. the deformed mesh). Is it possible in Python/COFFEE?
Thank you, maxx
On 19/07/2011 at 06:17, xxxxxxxx wrote:
Use op.GetDeformCache()
On 19/07/2011 at 07:31, xxxxxxxx wrote:
Ah, nice, thanx Nux.
Cheers, maxx
On 19/07/2011 at 08:00, xxxxxxxx wrote:
Np, But I still don't know how to use this while rendering... What GetCache() and GetDeformCache() returns while rendering is always None..
On 19/07/2011 at 09:39, xxxxxxxx wrote:
Hy Nux,
is there no way to attach something here? Would be very helpful ...
For now, just grab the file from here (DeformCacheTest_maxx.c4d) : www.artonbit.com/data
When I render this in the picture viewer, it is working (so the GetDeformCache() does return something).
Is that what you mean?
On 19/07/2011 at 13:24, xxxxxxxx wrote:
Hi maxx,
try your scene with using this code and a GeneratorObject instead of a polygon object as origin.
import c4d #Welcome to the world of Python def main() : global orig,copy cache = orig.GetCache() if cache: cache = cache.GetDeformCache() print orig.GetName(), orig.GetCache() if not cache: return copy.SetAllPoints(cache.GetAllPoints()) copy.Message(c4d.MSG_UPDATE)
Rendering an animation, the GetCache() returns the Cache during the animation. Rendering a single Frame, the GetCache() returns None.
Thanks & Cheers, Niklas