缩放选中线段的几种方法

1.通过xform修改器

2.计算结果坐标再去设置点的位置和手柄

 #1

 r = Rectangle isSelected:true 

with redraw off 

(

    convertToSplineShape r 

    max modify mode 

    setSegSelection r 1 #(1,2) 

    subObjectLevel = 2 

    modPanel.addModToSelection (XForm() ) 

    r.modifiers[1].gizmo.scale *= 1.5 collapseStack r 

) 

#2 

r = Rectangle position:[0,-20,0] 

with redraw off 

(

    convertToSplineShape r 

    in coordsys r 

    ( 

        tm = TransMatrix r.center 

        tm.scale *= 1.5 

        for i=1 to 3 do 

        (

            setKnotPoint r 1 i ((getKnotPoint r 1 i) * tm)

           .......
        )

    )

)

评论0

请先

没有账号? 注册  忘记密码?

社交账号快速登录