Notifications
Clear all

[Closed] sorry, softselection and splines

hi everyone,
sorry i dont now how this exactly works, fool me!
I`m writing a simple lip synch script for ma anim. It has a simple interface witch includes:
spline cage around mouth( vertical and horizental derived from original mouth ) and two bones from head to mouth.
the lower bone uses an audio controller. I have these problems:

  1. can i load audio files to my controller using maxscript?
  2. How can I activate soft selection in maxscript for editable splines?

I’ve checked maxscript’s ref. but I couldnt find anything.
I also checked this:

showproperties $mouth
.angle : float
.steps : integer
.renderable : boolean
.mapCoords : boolean
.optimize : boolean
.thickness : float
.sides : integer
.viewport_thickness : float
.viewport_sides : integer
.viewport_angle : float
.displayRenderMesh : boolean
.useViewportSettings : boolean
.displayRenderSettings : boolean
.adaptive : boolean
.thickness
.sides
.angle
.spline_1___invec_1 : point3
.spline_1___vertex_1 : point3
.spline_1___outvec_1 : point3
.spline_1___invec_2 : point3
.spline_1___vertex_2 : point3
.spline_1___outvec_2 : point3
.spline_1___invec_3 : point3
.spline_1___vertex_3 : point3
.spline_1___outvec_3 : point3
.spline_1___invec_4 : point3
.spline_1___vertex_4 : point3
.spline_1___outvec_4 : point3
.spline_1___invec_5 : point3
.spline_1___vertex_5 : point3
.spline_1___outvec_5 : point3
false

no properties?

and this is the code I used to anim the lips ( just one knot here):

on spn1 changed val do(
setKnotSelection $mouth 1 #(4)
pos = pathInterp $right_path val
setKnotPoint $mouth 1 4 pos
updateShape $mouth
)

1 Reply

from MaxScript Help

There are no additional properties accessible for Audio controllers.

which is all there is for the audio controller section… I’m guessing there is no access to these controllers from MAxScript. You can define them in Script, but not set file path names and such.

You will need to define the controller manually.

Soft Selection you would have to program. That also is not accessible from maxScript.

It’s fairly easy, have a pre determined vertex on your spline and find the distance to the other verts to compute the amount of push and pull.

There’s a command “Distance Point1 Point2” which will make this easy.

Sounds like a fun script… good luck

Keith Morrison