Select same track across multiple unique objects in the track editor

Select same track across multiple unique objects in the track editor

ldotchopz7FPNL
Advocate Advocate
468 Views
4 Replies
Message 1 of 5

Select same track across multiple unique objects in the track editor

ldotchopz7FPNL
Advocate
Advocate

I have an alembic file character made of hundreds of unique objects, i want to retime them using the playback graph and instance their keyframes across all objects, but since the objects are not instances i cannot select them all at once to paste the keyframes. I can make the Alembic Playback Graph appear in the track editor for all objects but then i still have to select the Playback Graph tracks 1 by 1. is there a script or a way to select the same track for mutiple objects so i can copy and paste their keyframes?

 

Thanks

0 Likes
469 Views
4 Replies
Replies (4)
Message 2 of 5

denisT.MaxDoctor
Advisor
Advisor
fn selectTrackInstances obj: = 
(
	if (t = trackviews.current) != undefined do
	(
		if obj == unsupplied do
		(
			for k=1 to t.numSelTracks() do exit with obj = t.getselected k
		)
		if isvalidobj obj do
		(
			first = on
			for k=1 to t.getnumTracks() where (t.gettrack k == obj) do
			(
				t.selecttrackbyindex k first
				first = off
			)
		)
	)
)


/* Using:  
selectTrackInstances()
*/



/******* MCR version for Drag-n-Drop to a Toolbar:


(
	if (t = trackviews.current) != undefined do
	(
		local obj = undefined
		for k=1 to t.numSelTracks() do exit with obj = t.getselected k
		if isvalidobj obj do
		(
			first = on
			for k=1 to t.getnumTracks() where (t.gettrack k == obj) do
			(
				t.selecttrackbyindex k first
				first = off
			)
		)
	)
)


********/
Message 3 of 5

ldotchopz7FPNL
Advocate
Advocate

Hi thanks for the reply! When i run the script nothing seems to happen. 

 

Is this script supposed to select track instances? Because what i am trying to do is select the same track of unique objects so i can then paste keyframe instances onto them instead to selecting them 1 by 1

0 Likes
Message 4 of 5

denisT.MaxDoctor
Advisor
Advisor

you must select at least one track so the script knows what to look for.   .... and maybe you need to expand all the tracks to see the sub-tracks.

0 Likes
Message 5 of 5

ldotchopz7FPNL
Advocate
Advocate

A script for $10 came out recently which solved this issue nicely for anyone facing the same problem in the future. 

Thank you for you script too @denisT.MaxDoctor 

https://jokermartini.com/product/bulk-editor/?unapproved=48050&moderation-hash=1f0287decd903e8755765...

0 Likes