Skip to main content

Part 1: Smart Importer

This section describes the creation of a new Solution and how to proceed importing IVI_Sample.psd file via Smart Importer. Specially about how to assign Controls to each image parts.


Create a new Solution

The first step is to create a new Solution for Scene Composer.

Double-click on the Empty template under Samples and Templates.
* Selecting “Empty” template creates a new solution based on the template.

drawing-5-1694781749.png

Activate the "Render Targets" panel and select the "Display". Change the display's resolution as shown below.

  • X Resolution 640
  • Y Resolution 960
drawing-5-1694799231.png

Click the "Save solution..." icon in the menu bar.

drawing-5-1694799359.png

A dialog box will appear, allowing you to select an appropriate location. Input any name as a solution file name.


Smart Importer

In our example we will use the Smart Importer to import a Photoshop .psd file. Smart Importer will analyze the PSD file and try to identify which controls are included in the picture. After some configuration effort you can directly create CGI Studio Controls wherever it is applicable.

Choose "Import > Smart Importer", "From Local File...". This will open the Windows Open dialog. Select the following Photoshop file and press "Open": 

<cgi-studio-root>\cgi_studio_content\2D\PSD\IVI_Sample.psd

drawing-5-1694799703.png

The photoshop file will be loaded and the Smart Importer dialog box will appear.

drawing-5-1695974331.png

The photoshop file's content will be displayed in the area marked in orange in the above picture. Click on the left-most triangle button to extend the IVI_Sample and Header layer tree. Check the checkbox to the left of the Header and make sure that all items under the Header are checked. Click on DigitalClock in the tree. From the Control List, click on the Apply button to the right side of the DigitalClock control.

drawing-5-1695974678.png

Click on “Basic Properties” tab and check “ShowFull24Hours” checkbox. This will make the display show 24 hours. Similarly, uncheck “ShowSeconds”. This will prevent the seconds from being displayed.

drawing-5-1695974764.png

If a Control is set and imported with layers and properties that do not match when imported, the original group will not reflect the Control, and another new group node with Control applied will be added.

Following the previous operation, similar operations are performed on each item.


Header Tree
drawing-5-1695974887.png
Target Layer Control List
TellTale_Error Tell Tale

Menu_button tree
drawing-5-1695975097.png
drawing-5-1695975179.png
Target Layer Control List Basic Properties
TextButton_Car TextButton Text (blank space)
TextButton_Navigation TextButton Text (blank space)
TextButton_Phone TextButton Text (blank space)
TextButton_Music TextButton Text (blank space)

Music Tree
drawing-5-1695975312.png
drawing-5-1695975379.png
Target Layer Control List Basic Properties
Slider
Slider
Value 9000
Minimum 0
Maximum 18000


drawing-5-1695975460.png

drawing-5-1695975530.png
Target Layer Control List Basic Properties
DigitalClock_Time DigitalClock ShowFull24Hours enable
ShowSeconds disable



drawing-5-1695975610.png
drawing-5-1695975697.png
Target Layer Control List Basic Properties
DigitalClock_Total_Time DigitalClock Time 18000
ShowFull24Hours enable
ShowSeconds disable


drawing-5-1695975818.png
drawing-5-1695976911.png
Target Layer Control List Basic Properties
CheckBox CheckBox Text (blank space)

Comfort Tree
drawing-5-1695977011.png
drawing-5-1695977080.png
Target Layer Control List Basic Properties
Seat_Left TextValue_Temperature Text Value Value 23
FormatText %02d


drawing-5-1695977185.png

Target Layer Control List
Seat_Left Icon_Button_+ IconButton
Icon_Button_- IconButton

drawing-5-1695977291.png
drawing-5-1695977350.png

Target Layer Control List Basic Properties
Seat_Left ProgressBar ProgressBar Value 23
Minimum 16
Maximum 28

drawing-5-1695977561.png
drawing-5-1695977621.png

Target Layer Control List Basic Properties
Seat_Left SeatHeating_Left(*) CheckBox Text (blank space)

(*)The image is treated like a checkbox. So there is no additional rectangle for that.

Target Layer Control List Basic Properties
Seat_Right TextValue_Temperature Text Value Value 23
FormatText %02d
Target Layer Control List
Seat_Right Icon_Button_+ IconButton
Icon_Button_-
Target Layer Control List Basic Properties
Seat_Right ProgressBar ProgressBar Value 23
Minimum 16
Maximum 28
Target Layer Control List Basic Properties
Seat_Right SeatHeating_Right(*) CheckBox Text (blank space)


(*)The image is treated like a checkbox. So there is no additional rectangle for that.

drawing-7-1676627399.png
Target Layer Control List
Fan slider slider


drawing-5-1695977834.png
drawing-5-1695977894.png

Target Layer Control List Basic Properties
Air RadioButton_Outside Air RadioButton Text (blank space)
RadioButton_Inside Air RadioButton Text (blank space)
RadioButton_AUTO RadioButton Text (blank space)


drawing-5-1695978139.png
Target Layer Configuration details
Air RadioButton_Outside Air/Control_Background disable (uncheck checkbox on the left)
RadioButton_Inside Air/Control_Background disable (uncheck checkbox on the left)
RadioButton_AUTO Air/Control_Background disable (uncheck checkbox on the left)

Navigation Tree
drawing-5-1695978241.png

Since this tree is unchecked, check it. There is no need to apply the control in ControlList since it only imports a Navigation image. After completing the settings up to this point, press the OK button to perform the import. The photoshop file will be imported with all configured controls and settings.

In the Scene Tree panel, you can confirm that all configured controls and settings made in Smart Importer have been applied during the import.

drawing-5-1695978714.png

After you finish importing, right click on the Navigation RenderNode2D below the Navigation group in Scene Tree and uncheck "Node Rendering Enabled”. Then this element will be not displayed by default.