PDA

View Full Version : Adding objects at playback? - COFFEE


Geespot
06-06-2006, 10:11 PM
Hi everyone,

Is it possible to add an object at playback?

When certain conditions are met, I have a coffee script that creates a new object and inserts it into the document.
The problem is, it doesn't work when I playback a scene or render an animation.

What happens is, the object is created but the document doesn't update until after the full animation is done (by then its too late)

I have tried the usual EventAdd and MSG_UPDATE after the object has been inserted but that doesn't seem to effect it.

Any ideas?

Srek
06-07-2006, 07:15 AM
This is not possible and for a reason. Creation of objects and geometry at rendertime is generaly not allowed. You will need to have all geometry and objects ready before. Use visibility or enable/disable to hide objects until you need them
Cheers
Björn

CGTalk Moderation
06-07-2006, 07:15 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.