THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/07/2012 at 05:30, xxxxxxxx wrote:
Cinema 4D Version: 13
Platform: Windows ;
I have experiment to control tp by py, trying to develop event handler.
When iterate by pid and set to new group, when preview gone to last frame, it crashes c4d.
from c4d import utils
from c4d.modules import thinkingparticles as tp
def main() :
tp = doc.GetParticleSystem()
obj = doc.SearchObject("target")
rc = utils.GeRayCollider()
ntp = tp.NumParticles()
objpos = obj.GetAbsPos()
tc = rc.Init(obj)
red = (tp.GetRootGroup()).GetDown()
for i in range(ntp) :
start_pos = tp.Position(i)
direct = objpos - start_pos
length = direct.GetLength()
rc.Intersect(start_pos, direct, length)
is_cnt = rc.GetIntersectionCount()
for id in xrange(is_cnt) :
cgid = rc.GetNearestIntersection()
if cgid["distance"] > 0.0:
On 31/07/2012 at 10:54, xxxxxxxx wrote:
Hi, can you please send MAXON a crashreport? Could you also please append the scene if possible?
Thx a lot!
On 05/08/2012 at 02:28, xxxxxxxx wrote:
I forgot about it ... resolved by another methods
On 05/08/2012 at 05:09, xxxxxxxx wrote:
But is it still possible to reproduce? A crash should never occurre
Thx a lot! Cheers, Sebastian