I am trying to get resolution information form timeline PySegment. I haven’t found a way to get media source from PySegment - is there any way to get it?
I have noticed that PySequence inherits from PyClip so
height are available there. But PySegment is inheriting from PyFlameObject and there is none of those attributes available.
Thank you for any help
Yeah, right, how do we go from PySegment to Pyclip seems a mystery.
@fredwarren, if you please, is this possible?
You can get the PyClip of a PySegment via the parent property of the PyFlameObjects
PySegment.parent give the PyTrack
PyTrack.parent give the PyVersion
PyVersion.parent give the PyClip
so PySegment.parent.parent.parent will give you the PyClip of the PySegment
Hi and thank you Philippe,
It seems that PySegment.parent.parent.parent returns the PySequence ancestor, which does have width and height, but that’s the resolution of the sequence containing the clip, not the clip itself.
The parent of the sequence is the reel, or a folder (library …)
Did I misunderstand something?
The following properties are available on a PySegment as of the 2023 version:
PySegment (source, gap, bfx):
PySegment with source media:
PySegment on an audio track:
Thanks a lot!