Script execution problem while rendering. (Guide)

Script execution problem while rendering. (Guide)

Anonymous
Not applicable
340 Views
0 Replies
Message 1 of 1

Script execution problem while rendering. (Guide)

Anonymous
Not applicable
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:

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!
0 Likes
341 Views
0 Replies
Replies (0)