realtimePixels
09-09-2009, 01:24 PM
hi all, first post in maxscript.
i have 300~ objects with names from 01 to 300, i want to show only one of them at each rendered frame. i guess i want to hide all the rest but cant find the method to tie the [hide] to current rendered frame.
now i use a callback to the slider, only after it worked i red it doesnt perform in render...
i tried with [animate on] but [hide] doesnt animate (i think) and anyways i would like to know if i can without...
btw. ignore the pad function, i ripped it from another thread (http://forums.cgsociety.org/archive/index.php/t-508915.html) to handle the padding in the objects name.
unRegisterTimeCallback calcVisiblityOfCloud
fn pad inp ln ch:"0" = (
inp = inp as string
while inp.count < ln do inp = ch + inp
inp
)
----------------------------------------------------
fn calcVisiblityOfCloud =
(
/* PlyMesh01 - 284*/
iFrame = pad (currentTime.frame as integer) 2
hide $*plyMesh*
showMe = execute("$PlyMesh"+iFrame)
unhide showMe
)
registerTimeCallback calcVisiblityOfCloud
i have 300~ objects with names from 01 to 300, i want to show only one of them at each rendered frame. i guess i want to hide all the rest but cant find the method to tie the [hide] to current rendered frame.
now i use a callback to the slider, only after it worked i red it doesnt perform in render...
i tried with [animate on] but [hide] doesnt animate (i think) and anyways i would like to know if i can without...
btw. ignore the pad function, i ripped it from another thread (http://forums.cgsociety.org/archive/index.php/t-508915.html) to handle the padding in the objects name.
unRegisterTimeCallback calcVisiblityOfCloud
fn pad inp ln ch:"0" = (
inp = inp as string
while inp.count < ln do inp = ch + inp
inp
)
----------------------------------------------------
fn calcVisiblityOfCloud =
(
/* PlyMesh01 - 284*/
iFrame = pad (currentTime.frame as integer) 2
hide $*plyMesh*
showMe = execute("$PlyMesh"+iFrame)
unhide showMe
)
registerTimeCallback calcVisiblityOfCloud
