MaxScript粒子流塌陷
2024-09-04 13:30:20
也是帮网友写的。不过最后没用上。哈哈。
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 = 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
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 = [,,]
particleMeshs[particID].transform = zeroMatrix
)
)
)
)
)
最新文章
- PLSQL配置新的oracle实例
- 资源等待类型sys.dm_os_wait_stats
- MySQL 存储过程基本函数
- 开发一个简单的python计算器
- SQL Server 2012安装后找不到服务器名称的解决办法!!!
- ASP.NET使用ConfigurationSection在Web.Config创建自定义配置节集合
- 北理工c语言期末考试
- LTE Module User Documentation(翻译14)——Uplink Power Control(上行功率控制)
- Verilog之电平检测
- CollectionView添加头尾部
- Expression Blend制作自定义按钮(转)
- 杭电ACM2058--The sum problem
- 简单的FTP上传下载(java实现 swing界面)
- JS和CSS中引号的使用
- go语言打造p2p网络
- 2018-10-04 [日常]用Python读取word文档中的表格并比较
- Springboot学习笔记(三)-常用注入组件方式
- tsm 存放磁带到带库
- 签名Cookie
- day22 面向对象基础