Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (
- fn TransferObjParams frame objA objB =
- (
- objA.transform = objB.transform
- if isValidNode objA.target AND isValidNode objB.target do
- (
- objA.target.pos = objB.target.pos
- )
- )
- fn AnimateCamToObjects cam obj_arr start_frame:0 =
- (
- if not isValidNode cam do return "invalid node"
- local cur_time = start_frame
- with animate on
- (
- for i=1 to obj_arr.count do
- (
- at time cur_time
- (
- TransferObjParams cur_time cam obj_arr[i]
- )
- cur_time += 1
- )
- )
- )
- local cam = pickObject rubberBand:selection.center
- local sel_objs = getCurrentSelection()
- AnimateCamToObjects cam sel_objs start_frame:0
- select cam
- )
Advertisement
Add Comment
Please, Sign In to add comment