• 庆生写的东西


    global GetBoneArray
    struct GetBoneArray
    (
     RootBone=#(),
     fn selRootBone =
     (
      sel_Array=selection as Array
      for sel_obj in sel_Array where findItem sel_Array (sel_obj.parent)==0 do append RootBone sel_obj
      select RootBone
     ),
     fn getChildren theNode =
     (
      nodeArray = #()
      for obj in theNode.children do
      (
      append nodeArray obj
      join nodeArray (getChildren obj)
      )
      return nodeArray
     ),
     ChildrenBone=#(),
     fn GetAllChildrenBone=
     (
      for i in RootBone do ChildrenBone +=getChildren i
     ),
     allBone=#(),
     fn GetAllBone=
     (
      allBone=RootBone+ChildrenBone
     )
    )


    GetBoneArray=GetBoneArray()
    GetBoneArray.selRootBone()
    GetBoneArray.GetAllChildrenBone()
    GetBoneArray.GetAllBone()


     

  • 相关阅读:
    Emacs 使用YASnippet
    odbc备忘
    Emacs 矩形编辑
    ftp by libcurl
    emacsshell
    Emacs cnblogs 代码着色
    Emacs下的Man
    #include ""还是<>
    三种*
    应对Maze勒索攻击的最佳实践分享
  • 原文地址:https://www.cnblogs.com/gaitian00/p/2335968.html
Copyright © 2020-2023  润新知