This website requires JavaScript. 夜鲁鲁鲁夜夜综合视频欧美,夜夜天天噜狠狠爱2019,夜夜高潮夜夜爽高清完整版1

<address id="ptvbv"></address>
<mark id="ptvbv"></mark>
<mark id="ptvbv"></mark><nav id="ptvbv"></nav>
  • <mark id="ptvbv"></mark>

    Repeat相關模塊
    2022-09-13 17:37 877 0

    函數

    gkl_json script_add_repeat (const gkl_json &param, gkl_string &errorStr) 加拼版單元 repeat ,如果有多個repeat追加 請在 script_begin_add_repeat 和 script_end_add_repeat 之間調用script_add_repeat 可以加速 更多...

     gkl_json script_begin_add_repeat (const gkl_json &param, gkl_string &errorStr) gkl_json script_end_add_repeat (const gkl_json &param, gkl_string &errorStr) gkl_json script_erase_repeats (const gkl_json &param, gkl_string &errorStr) 刪除Repeat,輸入參數為repeat的handle數組 更多...

     gkl_json script_select_repeats (const gkl_json &param, gkl_string &errorStr) 選中repeat,輸入參數為repeat數組 更多...

     gkl_json script_get_repeats (const gkl_json &param, gkl_string &errorStr) 獲取 更多...

     gkl_json script_get_exploded_repeats (const gkl_json &param, gkl_string &errorStr) 獲取最小拼版單元 更多...

     gkl_json script_repeat_alignBottom (const gkl_json &param, gkl_string &errorStr) 將所有選中的repeat向底部對齊 更多...

     gkl_json script_repeat_alignTop (const gkl_json &param, gkl_string &errorStr) 將所有選中的repeat向上對齊 更多...

     gkl_json script_repeat_alignRight (const gkl_json &param, gkl_string &errorStr) 將所有選中的repeat向右對齊 更多...

     gkl_json script_repeat_alignLeft (const gkl_json &param, gkl_string &errorStr) 將所有選中的repeat向左對齊 更多...

     gkl_json script_repeat_alignVertical (const gkl_json &param, gkl_string &errorStr) 將兩邊所有選中的repeat向豎向參考線對齊 更多...

     gkl_json script_repeat_alignHorizonal (const gkl_json &param, gkl_string &errorStr) 將兩邊所有選中的repeat向橫向參考線對齊 更多...

     gkl_json script_repeat_move (const gkl_json &param, gkl_string &errorStr) 將所有選中的repeat相對移動 更多...

     gkl_json script_repeat_auto_space (const gkl_json &param, gkl_string &errorStr) repeat間距自動調整 接口 更多...

     詳細描述

    函數說明

    ◆ script_add_repeat()

    gkl_json script_add_repeat(const gkl_json & param,gkl_string & errorStr )

    加拼版單元 repeat ,如果有多個repeat追加 請在 script_begin_add_repeat 和 script_end_add_repeat 之間調用script_add_repeat 可以加速

    參見

    script_add_repeat()

    參數

    [in]json    {
            "ref_step":"edit",                  --- repeat引用的step名字
            "flip":false,                       --- repeat是否引用陰陽板
            "step":"set",                       --- repeat 目標step名字
            "angle":0,                          --- repeat 旋轉角度 45
            "mirrx":false,                      --- repeat 關于 x軸對稱
            "mirry":false,                      --- repeat 關于 y軸對稱
            "detx":0.0,                         --- repeat 每個單元之間 x向間距
            "dety":0.0,                         --- repeat 每個單元之間 y向間距
            "nx":1,                             --- repeat x向單元數
            "ny":1,                             --- repeat y向單元數
            "insert_position":                  --- repeat 插入點坐標
                {
                "x":0.0,
                "y":0.0
                },
            "attribute":                        --- repeat 屬性, 屬性為非必須項,字段可有可無
            {
                ".repeat_space":1.2             --- repeat的間距設置
            }
        }
    

    返回

    ◆ script_erase_repeats()

    gkl_json script_erase_repeats(const gkl_json & param,gkl_string & errorStr )

    刪除Repeat,輸入參數為repeat的handle數組

    參見

    script_erase_repeats()

    參數

    [in]array        [
                {
                "class":15,
                "insid":2,
                },  
                {
                "class":15,
                "insid":4
                },
            ]
    

    返回

    ◆ script_get_exploded_repeats()

    gkl_json script_get_exploded_repeats(const gkl_json & param,gkl_string & errorStr )

    獲取最小拼版單元

    參見

    script_get_exploded_repeats()

    參數

    [in]string— step名字

    返回

    array

        [
            {
                "referenced step":"edit",               ---引用的step 名字
                "pos.x"         :0.0029975,         ---插入點坐標
                "pos.y"         :5.00298,
                "angle"         :0.0,               ---旋轉角度
                "mirrx"         :false,             ---是否關于x軸鏡像
                "mirry"         :false,             ---是否關于y軸鏡像
                "box":                              ---在當前的step的坐標系下repeat的邊界矩形
                    {
                        "left":0.0,
                        "right":5.2,
                        "bottom":11.2,
                        "top":12.5
                    }
            }
        ]
    

    ◆ script_get_repeats()

    gkl_json script_get_repeats(const gkl_json & param,gkl_string & errorStr )

    獲取

    參見

    script_get_repeats()

    參數

    [in]string— step名字

    返回

    array

        [
            {
                "class":15,
                "insid":4,
                "referenced step":"edit",       ---引用的step 名字
                "nx":1,                         ---x方向數目
                "ny":2,                         ---y方向數目
                "detx":0.0,                     ---x向repeat的間隔大?。ò瑀epeat的尺寸)
                "dety":2.67,                    ---y向repeat的間隔大小 (包含repeat的尺寸)
                "pos.x":0.0029975,              ---插入點坐標
                "pos.y":5.00298,
                "angle":0.0,                    ---旋轉角度
                "mirrx":false,                  ---是否關于x軸鏡像
                "mirry":false,                  ---是否關于y軸鏡像
                "box":                          ---在當前的step的坐標系下repeat的邊界矩形
                    {
                        "left":0.0,                     
                        "right":5.2,
                        "bottom":11.2,
                        "top":12.5
                    }
            }
        ]
    

    ◆ script_repeat_alignBottom()

    gkl_json script_repeat_alignBottom(const gkl_json & param,gkl_string & errorStr )

    將所有選中的repeat向底部對齊

    將所有選中的repeat向下對齊

    參見

    script_repeat_alignBottom()

    參數

    [in]json    {
        "margin":3.0,           --第一個repeat與參考線距離
        "span":3.0,             --與上一個repeat的距離
        "originline":3.0,       --對齊參考線
        }
    

    返回

    true成功,false 失敗

    ◆ script_repeat_alignHorizonal()

    gkl_json script_repeat_alignHorizonal(const gkl_json & param,gkl_string & errorStr )

    將兩邊所有選中的repeat向橫向參考線對齊

    參見

    script_repeat_alignHorizonal()

    參數

    [in]json    {
        "margin":3.0,           --第一個repeat與參考線距離
        "span":3.0,             --與上一個repeat的距離
        "originline":3.0,       --對齊的橫向向參考線
        }
    

    返回

    true成功,false 失敗

    ◆ script_repeat_alignLeft()

    gkl_json script_repeat_alignLeft(const gkl_json & param,gkl_string & errorStr )

    將所有選中的repeat向左對齊

    參見

    script_repeat_alignLeft()

    參數

    [in]json    {
        "margin":3.0,           --第一個repeat與參考線距離
        "span":3.0,             --與上一個repeat的距離
        "originline":3.0,       --對齊參考線
        }
    

    返回

    true成功,false 失敗

    ◆ script_repeat_alignRight()

    gkl_json script_repeat_alignRight(const gkl_json & param,gkl_string & errorStr )

    將所有選中的repeat向右對齊

    參見

    script_repeat_alignRight()

    參數

    [in]json    {
        "margin":3.0,           --第一個repeat與參考線距離
        "span":3.0,             --與上一個repeat的距離
        "originline":3.0,       --對齊參考線
        }
    

    返回

    true成功,false 失敗

    ◆ script_repeat_alignTop()

    gkl_json script_repeat_alignTop(const gkl_json & param,gkl_string & errorStr )

    將所有選中的repeat向上對齊

    參見

    script_repeat_alignTop()

    參數

    [in]json    {
        "margin":3.0,           --第一個repeat與參考線距離
        "span":3.0,             --與上一個repeat的距離
        "originline":3.0,       --對齊參考線
        }
    

    返回

    true成功,false 失敗

    ◆ script_repeat_alignVertical()

    gkl_json script_repeat_alignVertical(const gkl_json & param,gkl_string & errorStr )

    將兩邊所有選中的repeat向豎向參考線對齊

    參見

    script_repeat_alignVertical()

    參數

    [in]json    {
        "margin":3.0,           --第一個repeat與參考線距離
        "span":3.0,             --與上一個repeat的距離
        "originline":3.0,       --對齊的豎向參考線
        }
    

    返回

    true成功,false 失敗

    ◆ script_repeat_auto_space()

    gkl_json script_repeat_auto_space(const gkl_json & param,gkl_string & errorStr )

    repeat間距自動調整 接口

    參見

    script_repeat_auto_space()

    參數

    [in]json    {
        "stepname":"set",           //目標step名字
        "space":1.6,                //repeat之間間距
        "spacebyattr":false,        //repeat之間間距由屬性.repeat_space控制, false間距由 space參數控制,true表示間距由每個repeat之間的.repeat_space屬性控制
        "maxcount":1000             //執行迭代次數,整形值
        }
    

    返回

    true成功,false 失敗 自動調整成功返回true,不成功返回false

    ◆ script_repeat_move()

    gkl_json script_repeat_move(const gkl_json & param,gkl_string & errorStr )

    將所有選中的repeat相對移動

    參見

    script_repeat_move()

    參數

    [in]json    {
        "detx":3.0,         --移動x方向相對距離
        "dety":3.0,         --移動y方向相對距離
        }
    

    返回

    true成功,false 失敗

    ◆ script_select_repeats()

    gkl_json script_select_repeats(const gkl_json & param,gkl_string & errorStr )

    選中repeat,輸入參數為repeat數組

    參見

    script_select_repeats()

    參數

    [in]array        [
                {
                "class":15,
                "insid":2,
                },
                {
                "class":15,
                "insid":4
                },
            ]
    

    返回

    互動評論 0

    注意:此留言僅作為嘉立創與客戶日常交流之用,回復不是很及時,急切問題請聯系我司工作人員處理!
    登錄注冊 后才可以留言哦!
    夜鲁鲁鲁夜夜综合视频欧美,夜夜天天噜狠狠爱2019,夜夜高潮夜夜爽高清完整版1