Skip to main content

Easy Mode Generator

Custom Property Configuration概要

Easy

Modeは、各要素のプロパティをカスタマイズするための機能です。例えば、大量のプロパティを整理するために未使用のプロパティをプロパティパネルで非表示にすることができます。また、カスタマイズ済みのプロパティの構成ファイルをインポート/エクスポートすることもできます。これにより、ユーザー(デザイナー、プログラマーなど)ごとに最適なプロパティの構成ファイルを使用することができます。

本機能は、CGI Studio 3.12以前は、「SceneComposerConfigurator.exe」ファイルを使用してEasy Mode設定ファイルを生成する機能として実装されていました。CGI Studio 3.13では、Scene Composerの「環境設定」から、今まで以上に簡単にEasy Modeを設定することができる機能としてアップデートされました。

対象要素

Easy Modeでプロパティのカスタマイズが可能な要素は、以下のとおりです。

  • Configuration file for SceneComposerビヘイビア
  • Supportエフェクト
forノード(ノード2D、ノード3D)

カスタマイズ可能な項目

カスタマイズが可能なプロパティの項目は、以下のとおりです。

  • Hiding properties可視性(プロパティパネルにおける表示/非表示)
  • Initial values of properties読み取り専用
  • Define properties as Read-Only初期値(プロパティの初期値)
Hide complexity for unexperienced users Different configuration files for different user roles
    Designer Beginners / Experts Control designer

    The "SceneComposerConfigurator.exe" file can be used to generate an easy mode configuration file at any desired location. The name of this configuration file has to be chosen by the user.

    The generator executable file has to be at the same level with SceneComposer.exe.

    カスタマイズ可能なプロパティの項目は、プロパティごとに異なります。

    Workflow:基本設定

    1. Generateメニューバーの configuration[ xmlファイル file]
      .\SceneComposer\SceneComposerConfigurator.exe> -generate[ MyConfiguration.bin環境設定… .\SceneComposer\SceneComposerConfigurator.exe] -unpack MyConfiguration.bin MyConfiguration.xml
      
      から、環境設定ダイアログを開きます。
    2. Modify環境設定ダイアログの the[ xml環境 file] > [ Easy Mode ] を選択します。
    3. Pack the xml file again and put it at a certain place
      .\SceneComposer\SceneComposerConfigurator.exe -pack MyConfigurationModified.xml MyConfigurationModified.bin
      COPY MyConfigurationModified.bin .\config_restrictedAccess\config.bin
      
    Start SceneComposer and the modifications should be available (hidden properties / read only properties) The policy file must be stored at this location: SceneComposer\Data\Config\config.bin任意の要素のプロパティを選択し、プロパティの可視性/読み取り専用/初期値を設定します。
    drawing-4-1682659787.png

    drawing-7-1696393626.png

    If necesary, the user can set the right path to the easy mode configuration files viaTextNode2DのTextプロパティの初期値を "Preferences"Default panel.text" に設定した例

    エクスポート/インポート

    エクスポート

    環境設定ダイアログで設定した各プロパティの項目の構成は、XMLファイルとしてエクスポートすることができます。環境設定ダイアログの右上の [ Export ] ボタンによりエクスポートを実行します。

    drawing-4-1682659796.pngdrawing-7-1696394462.png
    インポート

    環境設定ダイアログの右上の [ Import ] ボタンにより、事前にエクスポート済のXMLファイルをインポートすることができます。 

    drawing-7-1696394543.png

    初期化

    環境設定ダイアログの右下の [ デフォルトに戻す ] ボタンにより、設定済の各プロパティの項目が初期化されます。


    drawing-7-1696394907.png

    This[ isデフォルトに戻す possible] in two different ways:ボタンをクリックすると、すべての要素のすべてのプロパティの項目が初期化されます。実行時はご注意ください。


      By writing inside the field the path and the name of the config file; By browsing the configuration file.

      In the configuration file the user can set values that will overwrite the default value from the ApplicationConfig file when SceneComposer starts. In this way, it can be set which object properties are to be presented in SceneComposer's property grid, "Preferences", and all existing dynamic properties.

      The configuration file will contain an element "Commands" containing the element "ForbidControlCreation". The element "ForbidControlCreation" can contain only values "True" or "False" were:

        True: SceneComposer no longer allows creating new controls False: no behavioral change in SceneComposer

        The configuration applies to all static object properties. The user can rule for dynamic properties like widgets, behaviours, controls. The configuration of widgets, behaviours and controls cannot be extracted/generated automatically.

        The configuration values which can be set are:

          Initial value; Restrict visibility (True/False); ForeceReadOnly (True/False).