View Full Version : Object Visibility
mpc823_99 04-01-2005, 03:09 AM I'd like to have an object in a scene for a number of frames and then I'd like it to simply not be visible after a certain frame. Seems like this should be easily accomplished, and yet I can't figure out how to do it. I would like to write an expression such that if the frame is above a certain value, set the render visibility to falseon the object. Is there a way to do this?
Daniel
|
|
You can animate the object material's opacity channel (or control it by expressions). If you have several materials on that object, you can create a rendergroup, parent the object under it and use the rendergroup's opacity channel, so that you don't have to manipulate the opacity of each single material. Hope that helps :)
Hmm, actually for the use in an expression, I wonder why I can't see a material's opacity channel in the channel bloc of the command tab, and why the rendergroup doesn't show up there at all...:shrug:
Ok, since the opacity channel isn't accessible in the Channels tab, you can use the setmotchan expression, like this: setmotchan(material,31,0) - 31 beeing the opacity channel. The last value sets the opacity, 0 = hidden, 1 = visible, you can control this value by another expression, or a slider, or whatever you want.
As for rendergroups, you actually have to attach a material to that group and set its operator to "after shading", then you can control this material the same way as above.
I don't know if there's a quicker way, but I don't believe so...
So, sorry for the long posts, I hope this helps now ;)
Errrrr, not entierly true actually, setmotchan only operates integer values, so no smooth opacity blending possible... Ok, I shut up now, I'll let others continue here, before I completely confuse you...:rolleyes:
Man, I begin to feel like a madman who's talking to himself :p
Scratch that last post, I was wrong - setmotchan actually *does* operate double values, but in a test that I did the render showed either 0 or 1, no inbetweens... Don't know why this doesn't work, maybe someone can answer this - I attached the test scene.
Daniel, for what you want to do this should work anyway...
mpc823_99
04-01-2005, 01:49 PM
Thanks for the replies maks. On my system the surfaces show up in the channel list and from there you can select opacity. (Only after a lot of blank entries however - very strange). For objects I cannot select an opacity. What it appears you have done with the render groups is simialr to selecting a surface and setting the opacity. But I had never really played with render groups before, so thanks for pointing that out.
However, even with opacity set to 0, the shadows of the object show up. I was hoping there was a way through expressions to make the object not show up in the render at all, similar to setting the render boolean on the Render->Surfaces tab to false. Maybe there's not a way to do this?
Daniel
Thanks for the replies maks. On my system the surfaces show up in the channel list and from there you can select opacity. (Only after a lot of blank entries however - very strange). For objects I cannot select an opacity. What it appears you have done with the render groups is simialr to selecting a surface and setting the opacity. But I had never really played with render groups before, so thanks for pointing that out.
However, even with opacity set to 0, the shadows of the object show up. I was hoping there was a way through expressions to make the object not show up in the render at all, similar to setting the render boolean on the Render->Surfaces tab to false. Maybe there's not a way to do this?
Daniel
Oh, you're right, the opacity channel is way down in the list, one can easily overlook it...:rolleyes:
I'm not sure what you mean by 'you cannot set opacity for objects' - you have to set the opacity for the obect's materials, or create a render group with a material and group the object underneath it.
Concerning Rendergroups, I actually noticed, that you can gradually blend the opacity on object materials, but apparently not on rendergroup materials. So, if you need a smooth blend, you'd have to apply each object material's opacity to the expression.
As for the shadows, have you checked "Transmissive Shdws" for your object?
Man, I begin to feel like a madman who's talking to himself :p
Dont miss tomorrow another episode of Maks MONOLOGUE :scream:
Jk m8
:blush::blush::blush:
I'm glad if it's at least entertaining...;)
LOL
Entertaining and educational, keep those coming please :D
dobermunk
04-01-2005, 03:57 PM
Between your avatar and the monologue, it feels a bit like being attacked by an army of cute red soldiers ;-)
Anyway - respect! I feel left behind!
HAHAHA, in fact that's my secret strategy to confuse you all!!! :twisted:
CGTalk Moderation
04-01-2005, 04:07 PM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.