Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a script that adds constraint orientation between bones and nulls, but it happens that this time I don't plan to use it between bones and nulls, the bones I am going to substitute them by points, what is the way to make it work correctly if all the objects of the scene are points objects, I am not going to use bones.
(
points = #()
bones = #()
for j in selection do
(
if iskindof j point then append points j.name else append bones j.name
)
sort points
sort bones
for j = 1 to points.count do
(
controller = orientation_constraint()
pt = getnodebyname bones[j]
pt.rotation.controller = controller
if j < 1 and j < points.count do
(
bn = getnodebyname points[j-1]
controller.appendTarget bn 50.0
)
bn = getnodebyname points[j]
controller.appendTarget bn 50.0
)
)
Solved! Go to Solution.