I'm trying to change the color/material of a cylinder , by doing:
cyl.wireColor = white
but it changes it from the beginning of the animation, how can I do that for only a given amount of frames ? - (and also for materials) !
Thanks
Forum topic · General Scripting
By RapBoyX · 2009-08-18
I'm trying to change the color/material of a cylinder , by doing:
cyl.wireColor = white
but it changes it from the beginning of the animation, how can I do that for only a given amount of frames ? - (and also for materials) !
Thanks
Anubis · 2009-08-19
Thanks for your compliment, Michele! :)
Michele71 · 2009-08-19
""...but I have prepared an example on my home page, which can help you. You can see the link into my account profile here or just click here to download the script...""
Beautiful home page, The entry of my favorites congratulations Anubis! ;)
Anubis · 2009-08-19
RapBoyX · 2009-08-19
Thank you ! it was helpful.
Anubis · 2009-08-18
Wirecolor is not animatable, but you can animate material.
See this forum topic: Change Material per frame
RapBoyX · 2009-08-18
I saw it but I didn't understand how to do it in code - if you can give me a small example.
Michele71 · 2009-08-18
Hi RapBoyX!
Try this:
----------------------------------------------------------
for t = animationrange.start to animationrange.end do
(
sliderTime = t
$.wireColor = random (color 0 0 0) (color 255 255 255)
)
----------------------------------------------------------
Create an animated object and evaluates the script. The object changes color every frame.