No Attributes
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/03/2012 at 12:58, xxxxxxxx wrote:
You're doing very well for your 7th day, by the way. You should've seen how I started .. lol
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/03/2012 at 14:13, xxxxxxxx wrote:
@ Niklas. GetCache() and GetDeformCache() are read only but works
fine for my renderings (getting info) so I don't know what you mean
that they shouldn't work for rendering?To actually make a polygon object, using SendModelingCommand()
and insert the first index returned would be my recommendation.pointobj = c4d.utils.SendModelingCommand( command = c4d.MCOMMAND_CURRENTSTATETOOBJECT, list = [op.GetClone()], mode = c4d.MODELINGCOMMANDMODE_ALL, doc = doc) newobj = pointobj[0] newobj.InsertAfter(op) c4d.EventAdd()
Cheers
Lennart -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/03/2012 at 14:28, xxxxxxxx wrote:
@Lennart:
Sorry, I wasn't clear enough. You can't use GetCache() while rendering in the PictureViewer, i.e. using it on a PythonTag or -Generator does not work.
Create a PythonTag on a Cube and insert that code onto it, hit "Render to PictureViewer" and you'll see that the return of GetCache() is None.
def main() : og = op.GetOrigin() print og, og.GetCache()
Cheers, Niklas
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/03/2012 at 15:10, xxxxxxxx wrote:
It works fine here.
Keep in mind that the PictureViewer scans from
first frame up to the frame to be rendered.
So that's when "None" is returned.Try to render at first frame or add a "if".
import c4d def main() : obj = op.GetOrigin() cobj = obj.GetCache() if cobj is not None: print obj, cobj
Cheers
Lennart -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/03/2012 at 15:17, xxxxxxxx wrote:
I am confused, once again. It works for me when rendering an animation, but rendering a single frame doesn't.
This is what I get when rendering an animation from Frame 0 to 10, 10 lines, but it should be 11!
<c4d.BaseObject object called 'Cube/Cube' with ID 5159 at 0x0D3A21A0> <c4d.PolygonObject object called 'Cube/Polygon' with ID 5100 at 0x0D596E40> <c4d.BaseObject object called 'Cube/Cube' with ID 5159 at 0x0D3A2160> <c4d.PolygonObject object called 'Cube/Polygon' with ID 5100 at 0x0D596D60> <c4d.BaseObject object called 'Cube/Cube' with ID 5159 at 0x0D3A21C0> <c4d.PolygonObject object called 'Cube/Polygon' with ID 5100 at 0x0D596E40> <c4d.BaseObject object called 'Cube/Cube' with ID 5159 at 0x0D3A21B0> <c4d.PolygonObject object called 'Cube/Polygon' with ID 5100 at 0x0D596D60> <c4d.BaseObject object called 'Cube/Cube' with ID 5159 at 0x0D3A21A0> <c4d.PolygonObject object called 'Cube/Polygon' with ID 5100 at 0x0D596E40> <c4d.BaseObject object called 'Cube/Cube' with ID 5159 at 0x0D3A2160> <c4d.PolygonObject object called 'Cube/Polygon' with ID 5100 at 0x0D596D60> <c4d.BaseObject object called 'Cube/Cube' with ID 5159 at 0x0D3A21C0> <c4d.PolygonObject object called 'Cube/Polygon' with ID 5100 at 0x0D596E40> <c4d.BaseObject object called 'Cube/Cube' with ID 5159 at 0x0D3A21B0> <c4d.PolygonObject object called 'Cube/Polygon' with ID 5100 at 0x0D596D60> <c4d.BaseObject object called 'Cube/Cube' with ID 5159 at 0x0D3A21A0> <c4d.PolygonObject object called 'Cube/Polygon' with ID 5100 at 0x0D596E40> <c4d.BaseObject object called 'Cube/Cube' with ID 5159 at 0x0D3A2160> <c4d.PolygonObject object called 'Cube/Polygon' with ID 5100 at 0x0D596D60>
Same when I render from frame 0 to 1, I only get one line but it should be two lines (2 frames actually rendered). I don't get a single line when rendering a single frame.
So the cache isn't available at the first frame? That's senseless actually ..
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/03/2012 at 15:30, xxxxxxxx wrote:
Prints the correct pointcount here at frame zero.
import c4d def main() : obj = op.GetOrigin() cobj = obj.GetCache() if cobj is not None: print cobj.GetPointCount()
Cheers
Lennart -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/03/2012 at 15:35, xxxxxxxx wrote:
And to print corresponding frame:
import c4d def main() : obj = op.GetOrigin() cobj = obj.GetCache() if cobj is not None: frame = doc.GetTime().GetFrame(doc.GetFps()) print frame,' <> ',cobj.GetPointCount()
Cheers
Lennart -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/03/2012 at 02:50, xxxxxxxx wrote:
On what C4D Version are you working on? Could you please test this scene? Just open it, clear the console and hit render?
What I get is
<c4d.BaseObject object at 0x07764080> None
Thanks,
-Niklas -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/03/2012 at 05:50, xxxxxxxx wrote:
For f** sake Niklas, don't use that linking of yours, I got all sorts of exe and porn install links and pop ups
and no dload.Try to find a safer dload please.
Cheers
Lennart -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/03/2012 at 06:16, xxxxxxxx wrote:
I don't see any of these, Lennart. Sorry. I've uploaded it on my server. tcastudios_cachetest.c4d
-Niklas
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/03/2012 at 06:45, xxxxxxxx wrote:
You need to let the Generator build the cache before the expression,
so set the priority of the tag to "Generators". -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/03/2012 at 08:27, xxxxxxxx wrote:
OH MY GOD! YOU'RE MY HERO! :hugging:
Thanks, Lennart! I never really "used" priorities in C4D.. And I didn't think of it.That lets me continue my work on a number of projects! Thanks!