Notifications
Clear all
[Closed] Path constraint
Mar 08, 2020 10:23 pm
I made a copy of an object that contains a constraint path and I want to change only the path object that is assigned to it. My intention is to keep the percentage already established from the previous path.
The object is not an instance is just a copy, the controllers as far as I can see are not instantiated, I don’t know why it returns to the initial value by saving the scene.
contArray = $Point_001
for o in contArray do
(
o.pos.controller.Path_Constraint.controller.appendtarget $Mid 50
o.pos.controller.Path_Constraint.controller.deleteTarget 1
)
1 Reply
Mar 08, 2020 10:23 pm
I solved it by adding a new path constraint controller and to this new one I added the percentage information of the other controller
for i = 1 to contArray.count do
(
contArray[i].pos.controller[3].controller.percent = copy contArray[i].pos.controller[2].controller.percent
)