compositing parent/children

Tomoaki Hayasaka wrote on 6/20/2014, 8:55 AM
Is it possible to create a compositing tree in a script?

The document tells about .IsCompositingChild and .IsCompositingParent properties but they are read only.
Also I guessed and tried following lines of code but none worked.


vtrack_0.SetParent(vtrack_1);
vtrack_0.SetCompositingParent(vtrack_1);
vtrack_0.AddChild(vtrack_1);
vtrack_0.AddCompositingChild(vtrack_1);
vtrack_0.CompositingChildren.Add(vtrack_1);
vtrack_0.CompositingChildren().Add(vtrack_1);

Comments

jetdv wrote on 6/20/2014, 12:30 PM
If vtrack_0 is the first video track in the project and vtrack_1 is the second video track in the project, You can make the second track a child track as follows:

vtrack_1.CompositeNestingLevel =1;
Tomoaki Hayasaka wrote on 6/21/2014, 12:38 AM
It worked! ...And I found it is already described in the API doc. I missed it for some unknown reason...
Thank you very much.