Home
Fusion 2.5+
Firefly+
Tutorials+
Videos+
Guides & Tips+
Extensions+
Versions
Teaching


8: CONDITIONS AND ACTIONS

8: CONDITIONS AND ACTIONS


Once we put any 3D Model even a primitive one into the world we need to assign them a material, To do that, we will now discover the Event Editor.

Locate the "Event editor" button in the tool bar, and click on it.

     
   
     
The display should look like this :
     
   
     
The icons across the top denote all the objects we have added to our scene plus a few more helpful ones that will help us later, under those are what are called Conditions we need a new condition called Start of frame click on New Condition then on the chess board icon and choose Start of Frame.
     
   
     
Once we have a condition set we need to say what happens when this condition is met, so in this case what happens at the start of a frame, we want to put our floor material on the floor, so right click inside the box that matches our floor thats also on the same line as our condition and choose Load Material.
     
   
     
We now have whats called the expression window, this window will ask you a series of questions which you need to answer and keep the green light lit, if ever the light turns red something went wrong and you need to fix it before continuing, so lets see what our first question is.
     
   
     
So our first question is Get material from Material Cache Object (0 to clear) while not the best formed question in the world what its trying to say is which material do we need, to answer the question we need to right click our material cache from the icons at the bottom and select Get a Material
     
   
     
its filled in some text for us and oh no the light has turned red, that means something is wrong, luckily for us it has also highlighted a section of text.>Enter Material's Index<
     
   
     
So what is it asking now? it wants to know which material we want from the cache as we only have 1 material in our cache, it should be easy, however you need to remember that like most lists in computers the number starts at 0 and not 1 so type in 0.
     
   
     
Ok, we have a green light that means we answered all the questions on this window lets move to the next click OK
     
   
     
We have another question to answer and this time its Enter index of nodes material, some models can have more than one place to put a texture, imagine a dice for example that could have 6 different textures. So this question is asking which place on the model should it put this texture as we only have 1 place which is Index 0 - as 0 is already entered and we have a green light, we can just hit OK and accept the default value.
     
   
     
We now have a green tick to show we have an action in that place, so lets Run Frame again and see our wonderful floor.
     
   
     
Hmmm... something went wrong
     
     
 

 




Spread the word!



You can share this document using the following buttons.




Submit your own User Tip