You're welcome @Akshay ! Glad you've liked the video. Here's the script with the time gap. I've just finished to write it right now, because it was interesting how to implement the time gap. ;) So just copy the code below and read the comments. // Get the current time int $varCurTime = `currentTime -query`; // Range for the exposure // Variable declaration float $varExposure; // Random function, range from 0 to 10 of exposure // So change here for expo value $varExposure = rand(0,10); // Time gap between change of exposure value // Variable declaration float $varTimeGap; // Numbers of frames // change here for gap between change $varTimeGap = 5; // Final expression // Change "aiAreaLight1" with the name of your light if(fmod($varCurTime,$varTimeGap)==0) { aiAreaLight1.aiExposure = $varExposure; } Good luck with your project!
@akshay16543 жыл бұрын
@@PrimalVFX wow❤️ thanks a lot, you helped me the right time🫂
@PrimalVFX3 жыл бұрын
you're welcome ;)
@nothingness644 Жыл бұрын
Boom boom bam straight to point
@PrimalVFX Жыл бұрын
Thank you very much! Glad you have enjoyed the video ⚡👍
@nothingness644 Жыл бұрын
@@PrimalVFX its showing me syntax error 🤔
@PrimalVFX Жыл бұрын
@Nothing Ness try to copy the code in the pinned comment. I think you make an error or something. It's strange.
@nothingness644 Жыл бұрын
@@PrimalVFX Thanks i made it can i also use this exppresion in other lights like point and others
@nothingness644 Жыл бұрын
@@PrimalVFX Actually i am trying to make obliesk kinda thing in which i want it to flicker a light
@Michael-eb9vq3 жыл бұрын
Thank you, I love the way that you teach fast without wasting time.👍
@PrimalVFX3 жыл бұрын
Hi Michael, thank you it's much appreciated!
@redcocktail3 жыл бұрын
Dope! Thanks for the sweet tut. 👌
@PrimalVFX3 жыл бұрын
Thank you mate for watching it ;)
@bumper64263 жыл бұрын
Baam, thanks for this video !
@PrimalVFX3 жыл бұрын
Thank you Bumper for watching!
@horuszoo86723 жыл бұрын
bamm ^^
@PrimalVFX3 жыл бұрын
Horus! Thank you for watching, hope you've like it.
@PIVA9743 жыл бұрын
Bam :)
@PrimalVFX3 жыл бұрын
Here it is! Thanks mate.
@christiangrafe80482 жыл бұрын
can i key the expression?
@PrimalVFX2 жыл бұрын
No, it's a method to avoid using keyframes animation.
@christiangrafe80482 жыл бұрын
@@PrimalVFX oh thats pitty, i wanted to use the flackering fort starting up the light till frame 15 and than stop the flackering. And it was possible to stop the expression using: if (frame
@PrimalVFX2 жыл бұрын
Surely there is a way for set-up it with expression/script and add it to my previous code. If I've got time I will look into it to find a solution.
@christiangrafe80482 жыл бұрын
can you next time please show te final render?
@PrimalVFX2 жыл бұрын
yes for sure, I didn't thought at time of making the video that it was necessary (flickering fx). Sorry for that. By the way, the final artwork of this particular scene is here: www.artstation.com/artwork/oAonbB
@joliekubinigambula72822 жыл бұрын
I can not see the flickering in the arnold Renderview? Is there anyone else having the same issue?
@PrimalVFX2 жыл бұрын
Hello! It's a bit strange I'm not sure. When you playback your scene, do you see the exposure of your light changing values? In the attribute editor.
@KipperTD Жыл бұрын
I found that these expressions give a more realistic flicker. You can mess around with the exposure noise variables to achieve quicker or slower overall flicker and the intensity for the micro flickers. aiAreaLightShape.intensity = rand (0,10) *.5 ; aiAreaLightShape.exposure = noise (time*1) *7 ;
@PrimalVFX Жыл бұрын
Thank you very much for sharing with the community! 🤘⚡