Thanks guys! This is exactly what I was looking for. I couldn't find any reference to the interpolation and sub settings but this solved it! I am curious what you mean Cairyn about a python generator not being able to create a spline. I use python generators for this purpose all the time, so I'm not sure I follow. Anything specific I should watch out for in the future?
Posts made by android
RE: Controlling tessellation of c4d.SplineObject in python
Controlling tessellation of c4d.SplineObject in python
Hi! Does anyone know the proper technique for controlling the tessellation of a SplineObject in a python generator? I'm dynamically creating a spline of type c4d.SPLINETYPE_BSPLINE and when I drop it into the scene it is tessellating into a rather coarse polyline and I can't find the controls to smooth it out. I have tried creating a SplineHelp and using that to sample the spline at regular intervals, but it appears to only sample the same coarse tessellated spline, not the underlying bspline. I'm sure this is something simple that I'm overlooking! Many thanks!
RE: Get current frame at render time with Python?
Hi Maxime, thanks for the response! I was aware that the scene gets copied, but unaware of the GetDocument function so it definitely makes sense! I will give that a try and report back. I have been trying this with both a python effector, as well as in a python xpresso node.
Get current frame at render time with Python?
I have a python script that reads external files on a per frame basis and modifies the scene accordingly. This works great in the viewport but when I go to render it appears as though I can no longer get current time, because I can't get "active document" anymore while it's in the render process. Can someone point me in the correct direction of getting current time/frame during render? It seems so simple, I'm sure I'm overlooking something. Thanks!!