zoukankan      html  css  js  c++  java
  • Useful for loop in MaxScript

    for a in selection do movekeys a (x+=3)
    for a in selection do addmodifier a (optimize())


    ---------------------------------------------------------------------------
    for i=0 to 360 do sphere radius:1 pos:[(50*sin i), (100*cos i), 0]
    for i=0 to 360 do sphere radius:1 pos:[(100*sin i), (50*cos i), 0]
    animate on at time 100 for a in selection do a.pos=[(random -260 260), (random -260 260), (random -260 260)]


    for a in selection do a.segs=8

    -----------------------------------------------

    Torus smooth:2 selected:on
    Sphere radius:1.5 segs:8 selected:on
        
    converttopoly  $Sphere001
    converttopoly  $Torus001

    numVer = polyop.getnumverts $Torus001

    for i=1 to numVer do
    (
            sph = copy $Sphere001
            sph.pos = polyop.getvert $Torus001 i
    )


    ------------------------------------------------------

    allFaces = polyop.getnumfaces $torus001
    for i=1 to 200 do
    (
            polyop.setfaceselection  $torus001 #{(random 1 allFaces)}
            $torus001.extrudefaces (random 3 7)
    )





  • 相关阅读:
    Eclipse中项目去除Js验证
    Web安全扫描工具
    Oracle-定时任务
    About_Return
    About_php_封装函数
    About_PHP_函数
    About_PHP_验证码的生成
    About_PHP_文件的上传
    About_MySQL Select--来自copy_03
    About_AJAX_03
  • 原文地址:https://www.cnblogs.com/JimmyCode/p/2238854.html
Copyright © 2011-2022 走看看