Using level flow variables

By Anil Choudhary - 10 Oct, 2017 - 3ds Max , Stingray

In order to make it easier to control what’s happening in our car park level we are going to define a number of level flow variables so that from one place in the flow we can control everything instead of having to edit the values in the nodes.

The variables we are going to create are.

  1. Width of the car park
  2. Length of the car park
  3. Number of car models
  4. Percentage of Gaps
  5. Percentage of cars that are reversed parked

We will only show the individual steps for the first example but we will add screencasts for all of them to follow along.

The approach is that we need to define a variable on level load using the Set Numeric Variable node, later on in the Level flow we use the Get Numeric Variable to retrieve it again.

Open the level from the post “Random_position_rotation” or download project “here” and open Level “Set_Variable_Rows_Start_for_1_rows”

  1. Incase the Rows group is not expanded, expand it
  2. Right click on the line between “Level Loaded” and  “For Loop” and insert node “Set Numeric Variable” (Variable – Set Numeric Variable).
  3. Enter “carpark_width” in Name field
  4. Enter 10 in Numeric field
  5. Leave the scope to local as we will only use this variable in this level flow.
  6. Create a “Get Numeric Variable” node (Variable -Get Numeric Variable)
  7. Enter “carpark_width” in Name field
  8. Leave the scope to local
  9. Hook the “Numeric” of “Get Numeric Variable” to the “End Value” of “For Loop

The other variables follow the same logic.

Here is the “Using level flow variables” project and completed level to open “Set_Variable_Rows_Final_all_steps” 

We have also recorded the following Screencasts for this article links listed below

  1. Width of the car park
  2. Length of the car park
  3. Number of car models
  4. Percentage of Gaps
  5. Percentage of cars that are reversed parked

Screenshot of the final result of the level flow.

 

Posted By
Published In
Tags
  • 3ds Max
  • Stingray
  • Design Visualization
0 Comments
To post a comment please login or register