[Closed] I know it's possible,but how to do it by maxScript?
Thanks a lot first!
I have some meshes,plane01,plane02,…,plane20(or more),their postion like this(it’s not maxscript):
for(var i=1;i<=20;i++){
planes[i].x=planes[i].width * i
}
We can do this with ArrayTools by x postion with plane’s width to clone them
My question is:
1.I want to built a random acoustic curve by maxScript
2.I want to move those planes vertex along align the acoustic curve by maxScript(just like the PathDeform)
Please see the attached picture,and thanks for your help,if you can give me a right way to find out the algorithm,so sorry i am poor at the mathematics.
Have a nice day!
how can you do it without mxs? manually…
here is a way:
make a spline with enough knots to sample a time range
animate all vertices
apply to every … let’s say Z component of vertex position a float script (or expression) controller
use a float subanim (audiofloat for example) with time offset as a target value for every knot
i hope it will give you a good start:
curveAttr = attributes curveAttr attribID:#(0x123456,0x123456)
(
parameters main rollout:main
(
curve type:#float animatable:on ui:ui_curve
)
rollout main "Parameters"
(
spinner ui_curve "Curve Value: " range:[-1e9,1e9,0] type:#float fieldwidth:54
)
)
with redraw off
(
delete objects
s = splineshape isselected:on
addnewspline s
for k=0 to 100 do addknot s 1 #smooth #curve [k,0,0]
updateshape s
custattributes.add s curveAttr baseobject:on
setpropertycontroller s #curve (noise_float noise_strength:10)
animatevertex s #all
for k=1 to numknots s do
(
c = s.baseobject[#master][3*k - 1].controller = point3_script()
c.addconstant "point" (getknotpoint s 1 k)
c.addtarget "curve" s.baseobject.curveAttr[#curve] offset:(k-1)
c.setexpression "[point.x,point.y,curve]"
)
)
I’ll try my best to understood your codes,you know,I’m not so good at mxs,I need some times.
Ps:
With your last time’s help,I got this: http://www.i-swf.com/jz/ ,(just double click the screen,it will open,again,will close.If You be interested it,mail me: http://forums.cgsociety.org/dottob @163.com” data-bbcode=”true”>dottob@163.com i’ll post you the source.
Thank you,heartfelt!
is it pretty far from what i’ve posted?
just give me a thanks in your portfolio.