zoukankan      html  css  js  c++  java
  • MaxScript粒子流塌陷

    也是帮网友写的。不过最后没用上。哈哈。

    targetPF = $
    
    startTime = AnimationRange.Start.Frame
    endTime = AnimationRange.End.Frame
    
    particlesCount = targetPF.numParticlesGenerated() 
    
    particleMeshs = #()
    particleMeshs[particlesCount] = undefined
    
    
    
    
    for timeIndex = startTime to endTime do
    (
        SliderTime = timeIndex
        for particID = 1 to particlesCount do
        (
            targetPF.particleID = particID
            if targetPF.particleShape != undefined  then
            (
                if particleMeshs[particID] == undefined do
                (
                    particleMeshs[particID] = Editable_Mesh()
                    particleMeshs[particID].mesh = targetPF.particleShape
                    particleMeshs[particID].name = Uniquename "ParticleFlowCollapse"
                    with animate on
                    (
                        for tt = startTime to timeIndex do 
                        at time tt
                        (
                            zeroMatrix = matrix3 0
                            zeroMatrix.Position = targetPF.particleTM.Position
                            particleMeshs[particID].transform = zeroMatrix
                        )
                    )
                )
                with animate on
                (
                    particleMeshs[particID].transform = targetPF.particleTM
                )
            )
            else
            (
                if particleMeshs[particID] != undefined do 
                (
                    with animate on
                    (
                        zeroMatrix = particleMeshs[particID].transform
                        zeroMatrix.scale = [0,0,0]
                        particleMeshs[particID].transform = zeroMatrix
                    )
                )
            )
        )
    )
  • 相关阅读:
    Linux安装nginx
    Linux安装vsftp服务
    maven的Tomcat插件使用
    Mybatis逆向工程生成代码
    千里之行,始于足下
    java 通过反射获取注解
    天气预报需要用到的jar包
    JDBC 利用反射 配置文件
    从网页下载图片的代码
    装箱/拆箱 对象排序
  • 原文地址:https://www.cnblogs.com/sitt/p/3414995.html
Copyright © 2011-2022 走看看