See also: Main Index; Alphabetic; Misc; By Author; By Module; By Menu    External Links: The Gimp; Gimp User Manual

The Gimp path functions

gimp_get_path_by_tattoo Return the name of the path with the given tattoo.
gimp_path_delete Delete the named paths associated with the passed image.
gimp_path_get_current The name of the current path. Error if no paths.
gimp_path_get_locked Returns the locked status associated with the name path.
gimp_path_get_point_at_dist Get point on a path at a specified distance along the path.
gimp_path_get_points List the points associated with the named path.
gimp_path_get_tattoo Returns the tattoo associated with the name path.
gimp_path_list List the paths associated with the passed image.
gimp_path_set_current List the paths associated with the passed image.
gimp_path_set_locked Set the locked status associated with the name path.
gimp_path_set_points Set the points associated with the named path.
gimp_path_set_tattoo Sets the tattoo associated with the name path.
gimp_path_stroke_current Stroke the current path in the passed image.
plug_in_gap_move_path This plugin copies layer(s) from one sourceimage or source animation to multiple frames on disk, varying position, size and opacity.
plug_in_gap_move_path2 This plugin copies layer(s) from one sourceimage or source animation to multiple frames on disk, varying position, size and opacity.
plug_in_sel2path Converts a selection to a path
plug_in_sel2path_advanced Converts a selection to a path (with advanced user menu)

gimp_get_path_by_tattoo

Input:
IMAGEimageThe image
INT32tattooThe tattoo of the required path
Returns:
STRINGpath_nameThe name of the path with the specified tattoo
The procedure returns the name of the path in the specified image which has the passed tattoo. The tattoos are unique within the image and will be preserved across sessions and through renaming of the path. An error is returned if no path woth the specified tattoo can be found.
Andy Thomas; 1999

gimp_path_delete

Input:
IMAGEimageThe ID of the image to list delete the paths from
STRINGpath_name_to_delThe name of the path to delete
Returns: nothing
Delete the named path.
Andy Thomas; 1999

gimp_path_get_current

Input:
IMAGEimageThe ID of the image to get the current paths from
Returns:
STRINGcurrent_path_nameThe name of the current path
The name of the current path. Error if no paths.
Andy Thomas; 1999

gimp_path_get_locked

Input:
IMAGEimageThe image
STRINGpathnamethe name of the path whose locked status should be obtained
Returns:
INT32lockstatusThe lock status associated with the name path. 0 returned if the path is not locked. 1 is returned if the path is locked
This procedure returns the lock status associated with the specified path. A path can be "locked" which means that the transformation tool operations will also apply to the path.
Andy Thomas; 1999

gimp_path_get_point_at_dist

Input:
IMAGEimageThe ID of the image the paths belongs to
FLOATdistanceThe distance along the path
Returns:
INT32x_pointThe x position of the point
INT32y_pointThe y position of the point
FLOATgradientThe gradient at the specified point
This will return the x,y position of a point at a given distance along the bezier curve. The distance will the obtained by first digitizing the curve internally an then walking along the curve. For a closed curve the start of the path is the first point on the path that was created. This might not be obvious. Note the current path is used.
Andy Thomas; 1999

gimp_path_get_points

Input:
IMAGEimageThe ID of the image to list the paths from
STRINGpathnamethe name of the path whose points should be listed
Returns:
INT32path_typeThe type of the path. Currently only one type (1 = Bezier) is supported
INT32path_closedReturn if the path is closed. {0=path open, 1= path closed}
INT32num_path_point_detailsThe number of points returned. Each point is made up of (x,y,pnt_type) of floats
FLOATARRAYpoints_pairsThe points in the path represented as 3 floats. The first is the x pos, next is the y pos, last is the type of the pnt. The type field is dependant on the path type. For beziers (type 1 paths) the type can either be {1.0= BEZIER_ANCHOR, 2.0= BEZIER_CONTROL}. Note all points are returned in pixel resolution
List the points associated with the named path.
Andy Thomas; 1999

gimp_path_get_tattoo

Input:
IMAGEimageThe image
STRINGpathnamethe name of the path whose tattoo should be obtained
Returns:
INT32tattooThe tattoo associated with the name path
This procedure returns the tattoo associated with the specified path. A tattoo is a unique and permanent identifier attached to a path that can be used to uniquely identify a path within an image even between sessions.
Andy Thomas; 1999

gimp_path_list

Input:
IMAGEimageThe ID of the image to list the paths from
Returns:
INT32num_pathsThe number of paths returned
STRINGARRAYpath_listList of the paths belonging to this image
List the paths associated with the passed image.
Andy Thomas; 1999

gimp_path_set_current

Input:
IMAGEimageThe ID of the image to list set the paths in
STRINGset_current_path_nameThe name of the path to set the current path to
Returns: nothing
List the paths associated with the passed image.
Andy Thomas; 1999

gimp_path_set_locked

Input:
IMAGEimageThe image
STRINGpathnamethe name of the path whose locked status should be set
INT32lockstatusThe lock status associated with the name path. 0 if the path is not locked. 1 if the path is to be locked
Returns: nothing
This procedure sets the lock status associated with the specified path. A path can be "locked" which means that the transformation tool operations will also apply to the path.
Andy Thomas; 1999

gimp_path_set_points

Input:
IMAGEimageThe ID of the image to set the paths in
STRINGpathnameThe name of the path to create (if it exists then a unique name will be created - query the list of paths if you want to make sure that the name of the path you create is unique. This will be set as the current path.
INT32ptypeThe type of the path. Currently only one type (1 = Bezier) is supported
INT32num_path_pointsThe number of points in the path. Each point is made up of (x,y,type) of floats. Currently only the creation of bezier curves is allowed. The type parameter must be set to (1) to indicate a BEZIER type curve. For BEZIERS. Note the that points must be given in the following order... ACCACCAC ... If the path is not closed the last control point is missed off. Points consist of three control points (control/anchor/control) so for a curve that is not closed there must be at least two points passed (2 x,y pairs). If num_path_pnts % 3 = 0 then the path is assumed to be closed and the points are ACCACCACCACC.
FLOATARRAYpoints_pairsThe points in the path represented as 3 floats. The first is the x pos, next is the y pos, last is the type of the pnt. The type field is dependant on the path type. For beziers (type 1 paths) the type can either be {1.0= BEZIER_ANCHOR, 2.0= BEZIER_CONTROL}. Note all points are returned in pixel resolution
Returns: nothing
Set the points associated with the named path.
Andy Thomas; 1999

gimp_path_set_tattoo

Input:
IMAGEimageThe image
STRINGpathnamethe name of the path whose tattoo should be set
INT32tattovalueThe tattoo associated with the name path. Only values returned from 'path_get_tattoo' should be used here
Returns: nothing
This procedure sets the tattoo associated with the specified path. A tattoo is a unique and permenant identifier attached to a path that can be used to uniquely identify a path within an image even between sessions. Note that the value passed to this function must have been obtained from a previous call to path_get_tattoo.
Andy Thomas; 1999

gimp_path_stroke_current

Input:
IMAGEimageThe ID of the image which contains the path to stroke
Returns: nothing
Stroke the current path in the passed image.
Andy Thomas; 1999

plug_in_gap_move_path

Input:
INT32run_modeInteractive, non-interactive
IMAGEdst_imageDestination image (one of the Anim Frames), where to insert the animated source layers
DRAWABLEdrawabledrawable (unused)
INT32range_fromdestination frame nr to start
INT32range_todestination frame nr to stop (can be lower than range_from)
INT32nrlayerstack position where to insert source layer (0 == on top)
LAYERsrc_layer_idstarting LayerID of SourceObject. (use any Multilayeranimated Image, or an AnimFrame of anoter Animation)
INT32src_stepmode0-5 derive inserted object as copy of one layer from a multilayer src_image 100-105 derive inserted object as copy of merged visible layers of a source animframe 0: Layer Loop 1: Layer Loop reverse 2: Layer Once 3: Layer Once reverse 4: Layer PingPong 5: None (use onle the selected src_layer) 100: Frame Loop 101: Frame Loop reverse 102: Frame Once 103: Frame Once reverse 104: Frame PingPong 105: Frame None (use onle the flat copy of the selected frame)
INT32src_handle0: handle left top 1: handle left bottom 2: handle right top 3: handle right bottom 4: handle center
INT32src_paintmode0: GIMP_NORMAL_MODE (see GimpLayerModeEffects -- libgimp/gimpenums.h -- for more information)
INT32src_force_visible1: Set inserted layres visible, 0: insert layers as is
INT32clip_to_img1: Clip inserted layers to Image size of the destination AnimFrame, 0: dont clip
INT32rotation_follow0: NO automatic calculation (use the rotation array parameters as it is) 1: Automatic calculation of rotation, following the path vectors, (Ignore rotation array parameters)
INT32startanglestart angle for the first contolpoint (only used if rotation-follow is on)
INT32ARRAYp_xControlpoint x-koordinate
INT32argc_p_xnumber of controlpoints
INT32ARRAYp_yControlpoint y-koordinate
INT32argc_p_ynumber of controlpoints
INT32ARRAYopacityControlpoint opacity value 0 <= value <= 100
INT32argc_opacitynumber of controlpoints
INT32ARRAYw_resizewidth scaling in percent
INT32argc_w_resizenumber of controlpoints
INT32ARRAYh_resizeheight scaling in percent
INT32argc_h_resizenumber of controlpoints
INT32ARRAYrotationrotation in degrees
INT32argc_rotationnumber of controlpoints
INT32ARRAYkeyframe_absn: fix controlpoint to this frame number, 0: for controlpoints that are not fixed to a frame.
INT32argc_keyframe_absnumber of controlpoints
Returns: nothing
This plugin inserts one layer in each frame of the selected frame range of an Animation (specified by the dst_image parameter). An Animation is a series of numbered AnimFrame Images on disk where only the current Frame is opened in the gimp The inserted layer is derived from another (multilayer)image or from another Animation (as merged copy of the visible layers in a source frame) the affected destination frame range is selected by the range_from and range_to parameters the src_stepmode parameter controls how to derive the layer that is to be inserted. With the Controlpoint Parameters you can control position (koordinates), size, rotation and opacity values of the inserted layer If you want to move an Object from position AX/AY to BX/BY in a straight line within the range of 24 frames you need 2 Contolpoints, if you want the object to move folowing a path you need some more Controlpoints to do that. With the rotation_follow Parameter you can force automatic calculation of the rotation for the inserted layer according to the path vectors it is moving along. A controlpoint can be fixed to a special framenumber using the keyframe_abs controlpoint-parameter. Restictions: - keyframe_abs numbers must be 0 (== not fixed) or a frame_number within the affected frame range - keyframes_abs must be in sequence (ascending or descending) - the first and last controlpoint are always implicite keyframes, and should be passed with keyframe_abs = 0 - the number of controlpoints is limitied to a maximum of 1024. the number of controlpoints must be passed in all argc_* parameters See also (plug_in_gap_move_path, plug_in_gap_move)
Wolfgang Hofer; 1.1.29b; 2000/11/30

plug_in_gap_move_path2

Input:
INT32run_modeInteractive, non-interactive
IMAGEdst_imageDestination image (one of the Anim Frames), where to insert the animated source layers
DRAWABLEdrawabledrawable (unused)
INT32range_fromdestination frame nr to start
INT32range_todestination frame nr to stop (can be lower than range_from)
INT32nrlayerstack position where to insert source layer (0 == on top)
LAYERsrc_layer_idstarting LayerID of SourceObject. (use any Multilayeranimated Image, or an AnimFrame of anoter Animation)
INT32src_stepmode0-5 derive inserted object as copy of one layer from a multilayer src_image 100-105 derive inserted object as copy of merged visible layers of a source animframe 0: Layer Loop 1: Layer Loop reverse 2: Layer Once 3: Layer Once reverse 4: Layer PingPong 5: None (use onle the selected src_layer) 100: Frame Loop 101: Frame Loop reverse 102: Frame Once 103: Frame Once reverse 104: Frame PingPong 105: Frame None (use onle the flat copy of the selected frame)
INT32src_handle0: handle left top 1: handle left bottom 2: handle right top 3: handle right bottom 4: handle center
INT32src_paintmode0: GIMP_NORMAL_MODE (see GimpLayerModeEffects -- libgimp/gimpenums.h -- for more information)
INT32src_force_visible1: Set inserted layres visible, 0: insert layers as is
INT32clip_to_img1: Clip inserted layers to Image size of the destination AnimFrame, 0: dont clip
INT32rotation_follow0: NO automatic calculation (use the rotation array parameters as it is) 1: Automatic calculation of rotation, following the path vectors, (Ignore rotation array parameters)
INT32startanglestart angle for the first contolpoint (only used if rotation-follow is on)
STRINGpointfilea file with contolpoints (readable text file with one line per controlpoint)
Returns: nothing
This plugin is just another Interface for the MovePath (plug_in_gap_move_path) using a File to specify Controlpoints (rather than Array parameters). Notes: - you can create a controlpoint file with in the MovePath Dialog (interactive call of plug_in_gap_move) - for more infos about controlpoints see help of (plug_in_gap_move_path)
Wolfgang Hofer; 1.1.29b; 2000/11/30

plug_in_sel2path

Input:
INT32run_modeInteractive, non-interactive
IMAGEimageInput image (unused)
DRAWABLEdrawableInput drawable
Returns: nothing
Converts a selection to a path
Andy Thomas; 1999

plug_in_sel2path_advanced

Input:
INT32run_modeInteractive, non-interactive
IMAGEimageInput image (unused)
DRAWABLEdrawableInput drawable
FLOATalign_thresholdalign_threshold
FLOATcorner_always_thresholdcorner_always_threshold
INT8corner_surroundcorner_surround
FLOATcorner_thresholdcorner_threshold
FLOATerror_thresholderror_threshold
INT8filter_alternative_surroundfilter_alternative_surround
FLOATfilter_epsilonfilter_epsilon
INT8filter_iteration_countfilter_iteration_count
FLOATfilter_percentfilter_percent
INT8filter_secondary_surroundfilter_secondary_surround
INT8filter_surroundfilter_surround
INT8keep_knees{1-Yes, 0-No}
FLOATline_reversion_thresholdline_reversion_threshold
FLOATline_thresholdline_threshold
FLOATreparameterize_improvementreparameterize_improvement
FLOATreparameterize_thresholdreparameterize_threshold
FLOATsubdivide_searchsubdivide_search
INT8subdivide_surroundsubdivide_surround
FLOATsubdivide_thresholdsubdivide_threshold
INT8tangent_surroundtangent_surround
Returns: nothing
Converts a selection to a path (with advanced user menu)
Andy Thomas; 1999


The Gimp 1.2.5 (win32)Documentation fresh from PDB12:10:09 Do 19.06.03
Generated by pdb2doc.py written by Hans Breuer <Hans(at)Breuer.org>