THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/03/2012 at 07:06, xxxxxxxx wrote:
Hi Niklas,
thank you for your reply and your test...
Anyway, anyone knows the way to update a value in a given frame?
What is wrong in this code?
_
_
import c4d
#Welcome to the world of Python
def main() :
fps = doc.GetFps()
frame = doc.GetTime().GetFrame(doc.GetFps())
obj = op.GetObject()
Distance = []
for i in xrange (0, frame) :
doc.SetTime(c4d.BaseTime(i,fps))
c4d.GeSyncMessage(c4d.EVMSG_TIMECHANGED)
GPos = obj.GetAbsPos()
Distance.append(GPos)
doc.SetTime(c4d.BaseTime(frame,fps))
print Distance # return a list of the same vector (in this case the position in the current frame)
_
_
_
_
Cheers
Luther