コード例 #1
0
def _reset_compositor_pressed():
    global compositor
    compositor.transition.properties = copy.deepcopy(
        compositor.transition.info.properties)
    propertyparse.replace_value_keywords(compositor.transition.properties,
                                         current_sequence().profile)
    compositor.transition.update_editable_mlt_properties()
    _display_compositor_edit_box()
コード例 #2
0
    def create_mlt_transition(self, mlt_profile):
        transition = mlt.Transition(mlt_profile, str(self.info.mlt_service_id))
        mltrefhold.hold_ref(transition)
        self.mlt_transition = transition
        self.set_default_values()

        # PROP_EXPR values may have keywords that need to be replaced with
        # numerical values that depend on the profile we have. These need
        # to be replaced now that we have profile and we are ready to connect this.
        propertyparse.replace_value_keywords(self.properties, mlt_profile)

        self.update_editable_mlt_properties()
コード例 #3
0
ファイル: mlttransitions.py プロジェクト: admonkey/flowblade
 def create_mlt_transition(self, mlt_profile):
     transition = mlt.Transition(mlt_profile, 
                                str(self.info.mlt_service_id))
     mltrefhold.hold_ref(transition)
     self.mlt_transition = transition
     self.set_default_values()
     
     # PROP_EXPR values may have keywords that need to be replaced with
     # numerical values that depend on the profile we have. These need
     # to be replaced now that we have profile and we are ready to connect this.
     propertyparse.replace_value_keywords(self.properties, mlt_profile)
     
     self.update_editable_mlt_properties()
コード例 #4
0
ファイル: mltfilters.py プロジェクト: jliljebl/flowblade
    def __init__(self, filter_info):
        self.info = filter_info
        # Values of these are edited by the user.
        self.properties = copy.deepcopy(filter_info.properties)
        try:
            self.non_mlt_properties = copy.deepcopy(filter_info.non_mlt_properties)
        except:
            self.non_mlt_properties = [] # Versions prior 0.14 do not have non_mlt_properties and fail here on load

        self.mlt_filter = None # reference to MLT C-object
        self.active = True 

        # PROP_EXPR values may have keywords that need to be replaced with
        # numerical values that depend on the profile we have. These need
        # to be replaced now that we have profile and we are ready to connect this.
        # For example default values of some properties depend on the screen size of the project
        propertyparse.replace_value_keywords(self.properties, PROJECT().profile)
コード例 #5
0
ファイル: natronanimations.py プロジェクト: ptrg/flowblade
    def __init__(self, natron_animation_info, profile):
        self.info = natron_animation_info
        self.profile_desc = profile.description()
        self.properties = copy.deepcopy(natron_animation_info.properties)

        self.range_in = 1
        self.range_out = int(self.info.length)

        self.current_frame = 1
        self.mark_in = -1
        self.mark_out =-1
        
        # PROP_EXPR values may have keywords that need to be replaced with
        # numerical values that depend on the profile we have. These need
        # to be replaced now that we have profile and we are ready to connect this.
        # For example default values of some properties depend on the screen size of the project
        propertyparse.replace_value_keywords(self.properties, profile)
コード例 #6
0
    def __init__(self, natron_animation_info, profile):
        self.info = natron_animation_info
        self.profile_desc = profile.description()
        self.properties = copy.deepcopy(natron_animation_info.properties)

        self.range_in = 1
        self.range_out = int(self.info.length)

        self.current_frame = 1
        self.mark_in = -1
        self.mark_out = -1

        # PROP_EXPR values may have keywords that need to be replaced with
        # numerical values that depend on the profile we have. These need
        # to be replaced now that we have profile and we are ready to connect this.
        # For example default values of some properties depend on the screen size of the project
        propertyparse.replace_value_keywords(self.properties, profile)
コード例 #7
0
    def __init__(self, filter_info):
        self.info = filter_info
        # Values of these are edited by the user.
        self.properties = copy.deepcopy(filter_info.properties)
        try:
            self.non_mlt_properties = copy.deepcopy(filter_info.non_mlt_properties)
        except:
            self.non_mlt_properties = [] # Versions prior 0.14 do not have non_mlt_properties and fail here on load

        self.mlt_filter = None # reference to MLT C-object
        self.active = True 

        # PROP_EXPR values may have keywords that need to be replaced with
        # numerical values that depend on the profile we have. These need
        # to be replaced now that we have profile and we are ready to connect this.
        # For example default values of some properties depend on the screen size of the project
        propertyparse.replace_value_keywords(self.properties, PROJECT().profile)
コード例 #8
0
    def __init__(self, natron_animation_info):
        self.uid = md5.new(os.urandom(16)).hexdigest()
        self.info = natron_animation_info
        self.properties = copy.deepcopy(natron_animation_info.properties)
        """
        try:
            self.non_mlt_properties = copy.deepcopy(natron_animation_info.non_mlt_properties)
        except:
            self.non_mlt_properties = [] # Versions prior 0.14 do not have non_mlt_properties and fail here on load
        """
        #self.mlt_filter = None # reference to MLT C-object
        #self.active = True

        #         <propertyinterpretation propertyname="Color1" nodename="solid1">string_to_color</propertyinterpretation>

        # PROP_EXPR values may have keywords that need to be replaced with
        # numerical values that depend on the profile we have. These need
        # to be replaced now that we have profile and we are ready to connect this.
        # For example default values of some properties depend on the screen size of the project
        propertyparse.replace_value_keywords(self.properties,
                                             PROJECT().profile)
コード例 #9
0
def _reset_compositor_pressed():
    global compositor
    compositor.transition.properties = copy.deepcopy(compositor.transition.info.properties)
    propertyparse.replace_value_keywords(compositor.transition.properties, current_sequence().profile)
    compositor.transition.update_editable_mlt_properties()
    _display_compositor_edit_box()