View Full Version : Adding objects at playback? - COFFEE

06 June 2006, 09: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?

06 June 2006, 06: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

CGTalk Moderation
06 June 2006, 06: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.