-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add OperationGroup #93
Comments
Update to this, I've been working on the sblend_op_def: pyaaf2.dictionary.OperationDef = self.create.OperationDef(
auid='47052d96-effc-431a-b2fe-3b4291c5d8fd')
weak_ref_set: pyaaf2.properties.WeakRefArrayProperty = pyaaf2.properties.WeakRefArrayProperty(sblend_op_def,
7689,
26)
avid_param_byte_order_param_def = self.create.ParameterDef(auid='c0038672-a8cf-11d3-a05b-006094eb75cb')
avid_param_byte_order_param_def.name = 'AvidParameterByteOrder'
avid_param_byte_order_param_def.description = ''
avid_effect_id = self.create.ParameterDef(auid='93994bd6-a81d-11d3-a05b-006094eb75cb')
avid_effect_id.name = 'AvidEffectID'
avid_effect_id.description = ''
weak_ref_set.extend([avid_param_byte_order_param_def, avid_effect_id])
sblend_op_def['ParametersDefined'] = weak_ref_set
self.dictionary.register_def(sblend_op_def) Which results in this error: Traceback (most recent call last):
File "wrap.py", line 320, in <module>
create_aaf('output.aaf', 'seq_name', 24.0, 480, 120, 0, True, 5, fixed_gen(), 2)
File "wrap.py", line 281, in create_aaf
with WrappedAAF(outputfile, 'wb+') as aaf_file:
File "wrap.py", line 243, in __init__
sblend_op_def['ParametersDefined'] = weak_ref_set
AttributeError: __setitem__ Would greatly appreciate any help if anyone has any insight |
here is an example that might help from another project |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've created an AAF in Media Composer where a clip has a 3D Warp effect with two keyframes on it, and I'd like to be able to recreate it with PyAAF2.
I have this script to get some data from the Media Composer made AAF:
This produces:
When I try create the OperationGroup I ran into a few issues and thought I might have to register the
SBlend_v2
OperationDef as I couldn't find it anywhere in the library. I'm trying to do this with (whereself
is of typepyaaf2.file.AAFFile
):This is how I was trying to create the
OperationGroup
(whereaaf_file
is of typepyaaf2.file.AAFFile
:However I get the error from the
register_def
line:Is there any example code which could help? Am I approaching this from completely the wrong angle?
The text was updated successfully, but these errors were encountered: