I'm looking for a solution to delete/remove clips with the python api. Is this possible?
I need this function for a clip-file import script which creates the clip-files and imports them into the media library. Ideally I want to replace existing files with the same name, but if I import the files using the flame.import_clips function, they only get added and import_clips does not seem to have the option "add" or "replace" if the clip already exists.
Without this possibility I need to delete the clips which already exist to avoid having duplicates.
Using the wiretap api does not make sense in this case because as far as I know it can not work on open projects (is this still valid?)
thanks for your help!
Stefan
Solved! Go to Solution.
I'm looking for a solution to delete/remove clips with the python api. Is this possible?
I need this function for a clip-file import script which creates the clip-files and imports them into the media library. Ideally I want to replace existing files with the same name, but if I import the files using the flame.import_clips function, they only get added and import_clips does not seem to have the option "add" or "replace" if the clip already exists.
Without this possibility I need to delete the clips which already exist to avoid having duplicates.
Using the wiretap api does not make sense in this case because as far as I know it can not work on open projects (is this still valid?)
thanks for your help!
Stefan
Solved! Go to Solution.
Solved by fred.warren. Go to Solution.
Hello @stefanLDEBT,
It is currently not possible to select if a clip will be added or replaced when you use the flame.media_panel.move() and flame.media_panel.copy() functions. There is a request about this over at flamefeedback.autodesk.com. You can add your vote to: FI-02371
As for deleting a clip, this can be done using the flame.delete() function by passing the clip itself as the argument. For example: flame.delete(<PyClip>)
Please accept this as a solution if you feel your question has been answered.
fred
Hello @stefanLDEBT,
It is currently not possible to select if a clip will be added or replaced when you use the flame.media_panel.move() and flame.media_panel.copy() functions. There is a request about this over at flamefeedback.autodesk.com. You can add your vote to: FI-02371
As for deleting a clip, this can be done using the flame.delete() function by passing the clip itself as the argument. For example: flame.delete(<PyClip>)
Please accept this as a solution if you feel your question has been answered.
fred
Thank you Fred,
"You can add your vote to: FI-02371"
done 😉 It seems to be "accepted" as major priority, so I guess it's going to be in a future version soon. Thanks!
Meanwhile I work around it using the delete function - I totally missed this in the docs.
best,
Stefan
Thank you Fred,
"You can add your vote to: FI-02371"
done 😉 It seems to be "accepted" as major priority, so I guess it's going to be in a future version soon. Thanks!
Meanwhile I work around it using the delete function - I totally missed this in the docs.
best,
Stefan
Can't find what you're looking for? Ask the community or share your knowledge.