Targeted JSON Pointer :: Batch Assignment for Oi Alt Values[n]


using Targeted JSON Pointer..

ASTER::ACTION::JSON::Targeted JSON Pointer::Batch Assignment Oi Alt Values

オブジェクト・インスタンスに対する一括代入機能。

書きかけの項目

事前に設定された Targeted JSON Pointer を利用します。

ターゲットは配列であり、配列には「数値」が格納されています。

{
    "values":[
        9,8,1, 
        5,7,2, 
        4,3,6 
    ]
}

オブジェクト・インスタンスの Alt Values[n] に配列から読み取った数値を代入します。

配列には数値 ( float | double | int ) が格納されているという前提機能ですが、数以外の値でも可能な限り数値への変換を試行します。rev.0.9.22

真偽値 true1false0

浮動小数点数は Double として取得していますが CF25 に渡した時点で Float に丸められます。

文字列も数値化します。“123” は 123 に変換されます。

つまり数値と boolean や文字列を混在させて配列に格納しても、変換対応できる範囲内ならばエラーも無く処理できます。

{
    "batchAssign_val":[ 
                        9,8,1, 
                        5,7,2, 
                        4,3,6
                        ],
    "batchAssign_bool":[ 
                        true,false,true,
                        true,false,true,
                        true,false,true
                        ],
    "batchAssign_str":[ 
                        "1","2","3",
                        "9","8","7",
                        "4","5","6"
                        ],
    "batchAssign_float":[ 
                        1.00, 9.99, 0.56, 
                        5.7,  7.08, 0.2, 
                        0.4,  3.2,  4.689090999990901223 
                        ]
}

Parameter.1

Select the object instance. Only the "Active (sprite) Object" Type can be registered to the controller.

Description of the image

If "The Active Object" is not specified, an error will be displayed when executing the action from the event, and the registration process will be aborted.


Parameter.2


注意点.1

A