Notifications
Clear all

[Closed] Changing a Float Expression in Maxscript

I think I’m close but can’t quite seem to get the correct script.

I have an dummy ($point_tread_path001) constrained to a path and the percentage along the path is controlled by a Float Expression. I need the script to change the Float Expression.

Current Float Expression: -(Circle_Radius*Fuse_Rotate)/Path_Length
Would like it to change to: -Fuse_Move/Path_Length

I think it’s something like:
$point_tread_path001.pos.controller.Path_Contraint.controller.SetExpression “-Fuse_Move/Path_Length”
or
$point_tread_path001.pos.Path_Constraint.controller.SetExpression “-Fuse_Move/Path_Length”

Can someone throw me a bone? Thanks.

1 Reply

Nevermind. Finally landed on the right one:

$point_tread_path001.pos.controller.Path_Constraint.conroller[#Percent].SetExpression “blah blah blah”