AnsweredAssumed Answered

Need to add delay before running ce.generateModels?

Question asked by ryu@aditazz.com on Apr 10, 2017
Latest reply on Apr 15, 2017 by ryu@aditazz.com

Hello,

 

I am doing the following all in python:

  1. Associate a rule file with a shape
  2. Generate the model
  3. Create an new rule file
  4. Associate the new rule file with the shape

 

But when I try to regenerate the model using the new rule file, it seems to fail unless I put a delay in front, as in:

 

    time.sleep(10)

    shapes = ce.getObjectsFrom(ce.scene, ce.isShape)

    ce.generateModels(shapes)

 

Is there a reason why the delay is needed?  I might be doing something wrong here.

 

Thanks,

Robert

Outcomes