Modle fade away

Hello everybody.

Just like this video:https://www.youtube.com/watch?v=i489M_u1dIs

As time came from 13 to 15s,the model faded away

It’s really cool,how can I do that?

Best regas

Maybe there is a way to do it in VC as well, but you could do such a trick with video editing.
Just render the same animation twice, once with all elements and second time without the fading elements. Then do a cross-fade in video editing software.

Would be interesting to do this without render twice… :wink:

Regards
Feature

You can by modifying the opacity of materials over time.

2 Likes

Thank you for your advice,I wrote some code,It works well

from vcScript import *
app = getApplication()
comp = getComponent()
Test = app.findMaterial(“Test”)
green = app.findMaterial(“green”)

def OnRun():
comp.Material = white
B1 = comp.getBehaviour(“B1”)
B2 = comp.getBehaviour(“B2”)

while True:
val = 1
val2 = 0.01
B2.signal(False)
triggerCondition(lambda: getTrigger() == B1 and B1.Value == True)
B1.signal(False)

for i in range(100):
  val = val - val2
  Test.Opacity = val
  delay(0.05)
  comp.Material = Test

B2.signal(True)
delay(0.1)
B2.signal(False)
comp.Material = green
1 Like