Point/Polygon Object Cache ?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/07/2012 at 12:14, xxxxxxxx wrote:
In Py, is a undeformed Point/Polygon Object supposed
to generate a Cache?I'm only able to get a cache from a deformed Point/Polygon Object.
Cheers
Lennart -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/07/2012 at 04:47, xxxxxxxx wrote:
When and where are you trying to obtain the cache?
I was able to get and use the cache of an object in the Editor, but it does not seem to possible while rendering.. (in a PyTag, for example)-Nik
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/07/2012 at 07:35, xxxxxxxx wrote:
Nik, set Priority late Generators, didn't we agree on that before
The question still remains, can/do a -undeformed- point/polygon Object ever have a Cache?
Testbench for use in a Py Expression Tag set to Priority late Generators.
Try on a undeformed point object, deformed point object and all kinds of generators,
with and without deformers.Cheers
Lennart# In Py expression, set Priority to late Generators import c4d def main() : obj = op.GetObject() try: if obj.GetCache() and not obj.GetCache().GetDeformCache() : print 'Generator Cache' #But nothing from a point object except: pass if obj.GetDeformCache() : print 'Point Object DeformCache' return True try: if obj.GetCache().GetDeformCache() : print 'Generator DeformCache' except: print 'No Cache'
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/07/2012 at 13:13, xxxxxxxx wrote:
> Nik, set Priority late Generators, didn't we agree on that before
Oh man, you're right, Lennart. Ha! Really forgot about that. Thank you, once again.Guess I wasn't really concentrated on my previous answer, sorry. To come back to your original question:
_
> In Py, is a undeformed Point/Polygon Object supposed to generate a Cache? _
No, I'm very very very sure it is not. What object do you expect? It could actually only return itself on ~.GetCache() , but that would go on recursively, then. It only needs to create a new polygon-object internally as it differs from it's state before deformation, but without changes, there is no reason to create a new object that is used as "cache". (Was that actually clear? I'm a little tired, lol..)Cheers,
-Nik -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/07/2012 at 14:50, xxxxxxxx wrote:
I'm pretty sure as well, based on that test bench example,
but all I' asking is Yannick to get those germans out of the pool
at Max-Planck-Strasse and get a yes or no (Joke!).
A no is fine, so I then can make my own cache routine.The reason is for the on going woes making Generator Plugins
dependent on external objects that are not children of the Generator Object.To the best of my knowledge, the routines available are Hierarchyhelp
for Point object Generators and CheckDirty for Spline Object Generators.
As undeformed Point objects are not returning a Cache, both methods fails
and need, as it looks, a separate routine.
I'm fine with that if I know it has to be done/spend time on.Cheers
Lennart