THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 30/06/2011 at 08:14, xxxxxxxx wrote:
Hi,
I want to modify a generator object, a cube for instance.
I can modify It's cache, this will work in the editor, but not in in the renderer.
Also, using a cube and modifieng the cube's points, it seem's like the cubes cache isn't rebuilt before I modify it, so I modify the cubes already modifed points.
This is the code i was giving a try on a Python generator:
import c4d
from random import random
def main() :
dwn = op.GetDown()
if not dwn:
return
dwn = dwn.GetCache()
if not dwn:
return
for i in xrange(dwn.GetPointCount()) :
dwn.SetPoint(i, dwn.GetPoint(i) * 2)
dwn.Message(c4d.MSG_UPDATE)
dwn.Touch()
*squint to Sebastion :smile:* ..
Can anyone tell me how to do what I'm trying to achive ?
Thanks very much !
Niklas