this is my latest work that i have done at University, hope you like.

Thursday, 31 March 2011

 Try to create TV static lighting:

played around with lights and i found the best one to use was the spot light and projecting images through it.

 i wanted to create an image sequence to loop through the scene, so it would constantly be flickering light. the best solution was for this to create a folder of source images all named the same with a number after them e.g tv1, tv2, tv3 ...  after the all had been renamed i then selected the spot light uploaded the first image to the spot light selected image sequence so that the sequence went all the way through to the last image which for this was tv17.

i then had a look on a few different websites, books and forums in search of how to loop it so it would constantly chage throughout and the best answer was as follows:
 this was a screenshot of me testing different images seeing if they had enough colour change to them to be noticed.
 i then copied some MEL script from a forum, unfortunately this did not work,


then i found a forum that explained it a lot easier so this was the MEL explanation i used, which worked brilliant:

A very small script that lets you have a loop in your image sequence. It checks the framenumber  and when it reaches a certain value, it goes back to the first image of your sequence.

Usage:
-add a file into your light
-tell it to be an image sequence
-edit the expression (by right clicking the purple image number box and selecting edit extension.)
          (in this example its file48)file48.frameExtension=frame; into :

(in this example i have 304 image files that are s sequence, you have to edit this to the number of images you have. The variables $teller and @teller2 are just names, you can name it whatever you want.)

int$teller=frame;
int$teller2=$teller%304;
if($teller2<304 {
file48.frameExtension = $teller2;
}

-that's it


1 comment:

  1. lol cheers Jess was a long process in trying to find it but i glad its sorted now thought i would share it for future reference xx

    ReplyDelete