zoukankan      html  css  js  c++  java
  • MaxScript中GW使用范例一则

    View Code
    try(unRegisterRedrawViewsCallback  DrawSelectedShapeVertexIndex) catch()
    Fn DrawSelectedShapeVertexIndex =
    (
    GW.SetTransform(Matrix3 1)
    SelectedShapes = for tempObject in Selection where SuperClassOf tempObject == Shape Collect tempObject
    for tempShape in SelectedShapes do
    (
    SplineCount = NumSplines tempShape
    for splineIndex = 1 to SplineCount do
    (
    vertexCount = NumKnots tempShape splineIndex
    for vertexIndex = 1 to vertexCount do
    (
    vertexPosition = GetKnotPoint tempShape splineIndex vertexIndex
    vertexScreenPosition = GW.wTransPoint vertexPosition
    GW.wText vertexScreenPosition (vertexIndex as String) Color:green
    )
    )
    )
    GW.UpdateScreen()
    )
    registerRedrawViewsCallback DrawSelectedShapeVertexIndex
    CompleteRedraw()
  • 相关阅读:
    BlangenOA项目总结
    ==和Equals与值类型和引用类型
    SQL Server索引
    Html5 之拖动
    Html5 之过渡
    Html 之登录界面
    Html 之进度条
    GUI 之密码框
    GUI 之文本框
    GUI 之列表框
  • 原文地址:https://www.cnblogs.com/sitt/p/2189419.html
Copyright © 2011-2022 走看看