THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/06/2011 at 07:03, xxxxxxxx wrote:
Cinema 4D Version:
Language(s) : C++ ; PYTHON ;
I am confused about what's going on with an object's cache when rendering.
I made up a python tag which prints me the state of the cache of a cloner.
Rendering an animation, i see in the console, that GetCache() returns None (or NULL in C++), but that the Object itself now is the Cache.
But, rendering a single Frame, GetCache() returns also None, but the Object I recieve is the Object itself. O.o.
I hope you understand what I mean.
On 28/06/2011 at 12:51, xxxxxxxx wrote:
Ok, so different one:
Can please somebody explain me how a Generator Object is handled when rendering ? How does the "rendered document" then look like ? Because I need to modify the Cache of an Object, but it doesn't work when rendering.
On 28/06/2011 at 12:53, xxxxxxxx wrote:
Isn't everything Polygonized when sent to render?
On 28/06/2011 at 12:57, xxxxxxxx wrote:
Hm yes I think so. But the polygonized object then carries my Python tag.
So, imagine a cloner
- Cloner # clones 3 times
Using GetCache() i get the following hierarchy:
Everything is well, until I want to render a single frame.
Then using GetCache() returns None. I printed the Name of the Object (original it was a cloner) carrieng my Python tag and I recieve "Null", so it's a null Object.
But when rendering an animation, it does work using GetCache()..
On 28/06/2011 at 13:06, xxxxxxxx wrote:
Mhm, wait. Checked it out with a cube, seems like I can't get the cache of a cube while rendering ?! O_o
def main() :
I am so confused, you can't believe ! xD
I already modified the Cache whiel rendering, but I forgot what was the difference to now ! ..
On 29/06/2011 at 17:29, xxxxxxxx wrote:
Just chill man and don't be confused get help with all friends and solved your problems.
On 29/06/2011 at 21:06, xxxxxxxx wrote:
Remember that the cache may not be built when you get it. Check out the threads here about caches and the documentation to see when and what is available when. It is confusing but not insurmountable.
On 09/03/2012 at 15:04, xxxxxxxx wrote:
Is it possible to get the cache while rendering from C++ (Within TagData::Execute, ObjectData::GetVirtualObjects or ObjectData::Execute) ?
Edit: Man, I really didn't know that. Setting the Priority to Generators does the magic trick. Thanks to Lennart (tcastudios).
https://plugincafe.maxon.net/topic/6272/6658_no-attributes (first page, last post)