0

rv.commands.setFrame() doesn't work for groups

I'm trying to load a particular movie and set it to a particular frame. This works fine with just a single movie:

# ---
frame = rv.commands.frame()
file_source = rv.commands.addSourceVerbose([path_to_movie])
source_group = rv.commands.nodeGroup(file_source)
rv.commands.setViewNode(source_group)
rv.commands.setFrame(frame)
# ---

However, if I try and make e.g. a stack with two movies of the same length, it always sets the timeline to the last frame instead:

# ---
frame = rv.commands.frame()
file_source1 = rv.commands.addSourceVerbose([path_to_movie1])
file_source2 = rv.commands.addSourceVerbose([path_to_movie2])
source_group1 = rv.commands.nodeGroup(file_source1)
source_group2 = rv.commands.nodeGroup(file_source2)
stack_group = rv.commands.newNode("RVStackGroup", "stack")
rv.commands.setNodeInputs(stack_group, [source_group1, source_group2])
rv.commands.setViewNode(stack_group)
rv.commands.setFrame(frame)
# ---

I've printed out the frame number to make sure it's correct when I set it etc. Not really sure what else to do to make it work?

Thanks,
Anders

0 条评论

请先登录再写评论。