Message 1 of 1
Script execution problem while rendering. (Guide)
Not applicable
10-02-2008
08:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This topic was supposed to be a question but I managed to figure it out so I will explain what I did to the people
who might have the same problem as I did.
If you notice your scripts are not functioning properly while rendering do the following:
This little script will put two callbacks on the "#preRenderEval " and "#preRenderFrame " event.
You could use either one of them, they are not both required one will do just fine.
Every time a frame is about to get rendered these two are fired 🙂
Good luck!
who might have the same problem as I did.
If you notice your scripts are not functioning properly while rendering do the following:
callbacks.addScript #preRenderEval "Myfunction()" id:#SomeID
callbacks.addScript #preRenderFrame "Myfunction()" id:#SomeID
fn MyFunction =
(
$box01.pos = $box02.pos
$box01.pos.z = $box01.pos.z + 5
)
This little script will put two callbacks on the "#preRenderEval " and "#preRenderFrame " event.
You could use either one of them, they are not both required one will do just fine.
Every time a frame is about to get rendered these two are fired 🙂
Good luck!