GIMP :: Map-Object (python Script) - Error With Arguments

Aug 5, 2013

I'm doing an script in python and i need use the map-object plug-in. I tried to use but always i have an error with the arguments and i can´t find out whats wrong.

I used reference examples of scm but didn't work, so one in python will be enough.

View 4 Replies


ADVERTISEMENT

GIMP :: Reconciling Script-fu Interactive And Batch Arguments

Aug 29, 2013

How to properly write a script which is usable in both interactive and batch modes.

Let's say I have a script-fu add-on:

(define (add-watermark orgImg drw watermarkFileName relHt opacity)...
)
(script-fu-register
"add-watermark"
"Add Watermark..."
[Code] ......

As written above, with the
SF-MODE "Mode" "RUN-INTERACTIVE" SF-STRING "Main image file" ""
arguments commented out, this script works in interactive mode,operating on the active drawable in the active image;the first two arguments to the function (orgImg and drw) are filled in automagically by the gimp when the script is activated.

The only way I have figured out how to use this from batch mode is toadd another script which contains the name of the base file to process:

(define (batch-add-watermark inFileName watermarkFileName outFileName relHt opacity) (let* (
(orgImg (car (gimp-file-load RUN-NONINTERACTIVE inFileName inFileName))) (drw (car (gimp-image-get-active-layer orgImg))) )
(add-watermark orgImg drw watermarkFileName relHt opacity) (gimp-file-save RUN-NONINTERACTIVE orgImg drw outFileName outFileName) (gimp-image-delete orgImg)
)
)

This works, but neither procedure is making any use of what should be the first argument (missing from add-watermark above but present in batch-add-watermark) which is the mode.

View 1 Replies View Related

GIMP :: Python Plugins Are Not Installing?

Sep 2, 2013

Python plugins are not installing. They don't show up. Script-Fu works fine though.

View 9 Replies View Related

GIMP :: Flip Through Python Console

Sep 13, 2012

I'm having some problems with a python command. I'm working on an image that is 640x640. I'm trying to do a horizontal flip of a layer with this command:

pdb.gimp_item_transform_flip(layer, 320, 0, 320, 1)

the flip succeeds, but it generates a distortion on the flipped layer. When I try to flip that layer through gimp's interface, it is smooth.

I understood that the input values for the flip function were the layer, x and y of one point of the axis from wich the image will be flipped, and x and y of the end point of that axis. Here is the failure in the flip that I mentioned: URL....

this shouldn't happen or the flip will be useless for what I am trying to do. (the eye with problems is the first one, from left to right).

View 2 Replies View Related

GIMP :: Can't Register Python Plug-in

Jun 29, 2012

I'm trying to write a python plug-in, but it refuses to register. I went and downloaded another python plug-in, which did successfully register.

View 1 Replies View Related

GIMP :: Duplicating A Layer (Python Plug-in)

Jun 30, 2012

I want to create a plug-in that will improve detail in under- and over-exposed areas of photos, but I can't get as far as duplicating a layer. I'm new to GIMP plug-ins. My plug-in below is intended to create a copy of the image's layer and add the layer to the image.

The plug-in will register in Windows 7 (GIMP 2.8) but won't register in Ubuntu 12.04 (GIMP 2.6.12). In Windows, the plug-in gives an error. I don't get an error if I comment out line 8: Code:

View 2 Replies View Related

GIMP :: How To Remove One Out Of Three Layers Via Python - Fu Console

Dec 31, 2012

I have a gif animation that has 190 layers. It's a too much. I want to remove one out of three layers via the python-fu console. Here's what I did :

image = gimp.image_list()[0]
image.layers = [layer for (index,layer) in enumerate(image.layers) if index % 3]

Traceback (most recent call last): File "", line 1, in
AttributeError: attribute 'layers' of 'gimp.Image' objects is not writable

What is the correct way of removing layers ?

View 1 Replies View Related

GIMP :: How To Manage Existing Images Layers With Python - Fu

Jun 22, 2011

how can I manage existing images, layers, ecc. with Python-Fu? Its methods don't accept IDs (unlike Script-Fu) and it returns me an error if I try to do it. More simply, how I can reference to an existing "IMAGE", "DRAWABLE", ecc. object?

View 1 Replies View Related

GIMP :: Unable To Make Python Plug-ins Work

Oct 11, 2011

I have followed the instructions here [URL]......... installed GTK+, fiddled and cajoled and still I cannot get python scripts to run from within Gimp. The scripts show up in the menu within Gimp, but when clicked on, do nothing.

I am using Windows 7 32 bit, Gimp 2.6. I installed Python 2.6, pygtk all-in-one installer 2.2.

View 3 Replies View Related

AutoCAD Inventor :: Invalid Arguments Specified When Working With Database

Jan 28, 2013

I sometimes get a error message stating 'invalid arguments specified when working with database...' (see attachment). What causes these and can I fix them? The file opens and seems to work ok.

IV 2012, 64 bit, SP-2

Win 7, 8 gb, Quadro 1000m

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Define A Function With Negligible Arguments

Jun 25, 2013

I prepared a code to calculate number of days between two date.

I want to know how can I define negligible arguments for my lisp routins. It means if I omitted the arguments, lisp code can handle it without any errors ("; error: too few arguments")

In this case, my program defined as:  (TotalDays 1st_date 2nd_date)

(TotalDays 1978 03 21 2013 06 25)

and I want to have flexibility: if I use this routine as (TotalDays 1978 03 21), the program should substitute today's date with second date.

I know if I put "nil" instead of date for 2nd_date, It will not be an error, because:

(if (and y2 m2 d2) (setq n2 (GetJDN y2 m2 d2))(setq n2 (fix (getvar "DATE"))))

but that's not my favourite!, how can I omitted 2nd_date completely? as (TotalDays 1978 03 21)

Here is my lisp

;|How to use:(TotalDays 1978 03 21 2013 06 25)|;;;;;By Abbas Aqdam(defun TotalDays ( y1 m1 d1 y2 m2 d2 / n1 n2)(setq n1 (GetJDN y1 m1 d1))(if (and y2 m2 d2) (setq n2 (GetJDN y2 m2 d2))(setq n2 (fix (getvar "DATE"))))(abs(- n1 n2)));;;;Leap years are included;;;;By Abbas Aqdam(defun GetJDN ( year month day / a y m J)(setq a (/(- 14 Month) 12))(setq y (-(+ year 4800) a))(setq m (-(+ Month (* 12 a)) 3))(setq J (-(+ day (/(+(* 153 m) 2)5) (* 365 y) (/ y 4) (/ y 400)) (/ y 100) 32045)))

View 9 Replies View Related

Illustrator :: Mapping Symbol On 3D Object Causes Error While Processing Appearance Of Object

Oct 6, 2012

I have simple a 3D bottle shape created from about 16 points and I am trying to map a gif image on to it usning CS5.  No matter what I have done (work from a new document, etc.) I always get the error message. I also receive this error when I attempt to map a jpg image on to the same shape.  I have attempted this on three different Windows 7 machines running CS5 with the same result.  When I try it with CS6 the program closes with a catastrophic error and no message. I do not receive this error using the default symbols.  The gif and jpg images are imported and imbedded into the document and then moved to the symbols library. 

View 6 Replies View Related

AutoCAD Inventor :: Listening To Events - Python To Write DXF Files Out

Jun 21, 2012

I wrote a small script in python to write dxf files out. I want to add this to a button on the ribbon. I got that sorted out and can get my button to appear where I want it. I am having trouble calling the script from the button though.

The API tells me that the button has an OnExecute() event that I should listen for to call my script. I have been searching on how to do that from python but I haven't had any luck.

View 2 Replies View Related

Maya Animation :: Software Hanging When Using Latest Python Script?

Apr 21, 2013

i have made same rigging as wagon car rigging from DT.i have added suspension also.

for scripting part other scripting's is working all right.but scripting for tyres take time.

for auto_rev and revolve option it takes time.wheel spin rotates without any problem.

View 2 Replies View Related

Paint Shop Pro :: Python Scripting - Input Dialog With Browse Button

Aug 1, 2012

I'm fumbling around with a Python script. Is it possible to make an input dialog with a "Browse" button so the user can find a folder (to be loaded into a variable in the script)?

View 5 Replies View Related

Maya :: Error / Object Name Is Not Unique

Oct 16, 2011

I seem to be having many, many problems in Maya 2012.Simple things like opening the plugin manager window, changing the camera, opening hypershade, and assigning materials seem torefuse to work, and give me errors such as

// Error: initializePlugin function failed (stereoCamera)
and
// .
Error: Object's name 'PluginRowColLyt1' is not unique

This is a clean install of Maya 2012 on Windows 7 64-bit, with no previous versions having ever been installed on here.

I've tried reinstalling it multiple times, and the issues still persist. I've also tried reinstalling Python multiple times.

View 4 Replies View Related

AutoCad 2D :: Getting Error When Hatch Inside The Object

Jul 4, 2012

How to fix the error I'm getting when I try to hatch inside the object shown. Elevation seems correct, as far as I can be sure its a closed polyline.

Error - "Boundary not valid"

Hatch.dwg

View 4 Replies View Related

AutoCAD VB :: Error / Failed To Get Document Object

Jun 26, 2001

The following code produces a run time error:

"Failed to get the Document object"

Public AcadApp As AcadApplication, AcadDoc As AcadDocument
Set AcadDoc = AcadApp.ActiveDocument
AcadApp.ActiveDocument = AcadDoc

why?

View 9 Replies View Related

Maya :: Error - Invalid Use Of Object When Selecting

Oct 22, 2011

Whenever I switch renders layers I get the following error

/ Error: ...cameraMaskChange(unifiedRenderGlobalsWindow|rgMainForm|tabForm|mentalRayTabLayout|mentalRayCommonTab|scrollLayout|commonTabColum //
// Error: Invalid use of Maya object "unifiedRenderGlobalsWindow|rgMainForm|tabForm|mentalRayTabLayout|mentalRayCommonTab|scrollLayout|commonTabColumn|rgRenderableCamerasFrame|renderableCamerasSW|mayaSoftwareCameraLayout|columnLayout27|columnLayout28|columnLayout29|checkBoxGrp71". //
[code]....

Error: Invalid use of Maya object "persp"..it will happen for every camera in the scene until I close and re-open the scene! I do not know what causes it but it seems like whenever I delete a render layer it starts happening and it is driving me positively bonkers!

View 2 Replies View Related

AutoCAD .NET :: Error In Document Object Creation

May 8, 2012

using System;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Runtime.InteropServices;
using Autodesk.AutoCAD.Interop.Common;
using Autodesk.AutoCAD.Interop;
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.EditorInput;

[code]....

Working Environment:-

Visual Studio 2010AutoCAD 2011 C#
 
After run following error will occure

"An unhandled exception of type 'System.TypeLoadException' occurred in mscorlib.dll

Additional information: Method 'CopyTo' in type 'Autodesk.AutoCAD.ApplicationServices.DocumentCollection'

from assembly 'acmgd, Version=18.1.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation ."

View 2 Replies View Related

AutoCAD 2013 :: Error While Hiding And Unisolating Object

May 2, 2012

I have a 3D model and I have made some views. I put my dimentions on view. For now its OK.Then, I want to change something in my 3D model, and I am using "hide objects" and "unisolate objects" tasks, while doing my changes. In this example I did not change anything, just went to model space, selected all objects and did tasks "hide objects" and then "unisolate objects". Then, when I go back to my layout, all dimentions are wrong. Nothing was changed, but "hide objects" and "unisolate objects" tasks ruined the annotative dimensions.

View 4 Replies View Related

AutoCAD Map 3D :: Fatal Error When Using Grip To Select Object

Apr 16, 2012

Fatal error when using grip to select object.. Crashes

View 5 Replies View Related

Illustrator :: Error Occurred While Processing Appearance Of Object

Mar 6, 2014

I am constantly getting the error message: "an error occurred while processing the appearance of an object". I get this error even on very simple artwork, one layer / one filter. Having this problem with the "latest and greatest" version of CC products?

View 2 Replies View Related

CorelDRAW X6 :: Error When Rotating Object That Exceeds Drawing Surface

Apr 9, 2012

When rotating an object that will put any part of it outside the drawing surface, I get the following error-

Object position specified was not on drawing surface

This was never a problem for me with prior versions of Draw. Is there an option to allow Corel to do so with X6? The only workaround I've found is to temporarily increase the size of the work area, which is a bit of a pain when you're dealing with labels, not just page size.

New information: Just discovered that, if I group all elements, I can rotate them. The bug only occurs if I select (but don't group) them.

View 2 Replies View Related

Corel PHOTO-PAINT X6 :: PSD Export Error - Text Object

Jun 16, 2012

When I'm saving my file as PSD I have strange error with "nice" description.The only way to avoid it is search and delete design elements - I found that its caused by one text object.

The question is what can be wrong with text object to generate this error. I can edit text and do everything with it but I cant save it as PSD. Its hard to find it in big complicated designs. I think similiar problem was in Corel Photopaint X3. Seems like it left to X6 version.Bug exists in all files with text objects.

system configuration:Win 7 Pro 64bit, Intel i5-2500, 8 GB RAM, 128 SSD SAMSUNG + 2TB on hard drives.

corel version: X6 VERSION: 16.4.0.1280

View 14 Replies View Related

AutoCAD VB :: Runtime Error 429 - ActiveX Component Can't Create Object

Dec 26, 2012

I build a program to "*.dll" by Visual Basic 6.0+AutoCad2006,when it runs in Cad VBA Environment,if it gets error,I try to get start again,It shows message:"Rutime Error 429:ActiveX Component Can't Create Object",and then message "440:Automation error".But sometimes,it works all right.Thats troubled me for a long time,I can't find a reason, so can't improve my program.

View 1 Replies View Related

AutoCAD .NET :: Error / Cannot Access A Disposed Object / Objectname / FrmBatchProcess

Feb 2, 2012

<CommandMethod("crane")> _ Sub Crane() Application.ShowModelessDialog(myForm) End Sub
 
Show it only happens after I've open the form once. When I close it and try to re-open it it fails to open.

How do I dispose of VB.NET objects...

View 3 Replies View Related

AutoCAD Civil 3D :: Error Message - Object Was Open For Read

Nov 27, 2008

I very frequently get the above message, "Oject was open for Read". Its to do with annotative text objects which I just recently started using. When I get the message the piece of text I am trying to make changes to is frozen, cant delet it or anything?

View 9 Replies View Related

Revit :: Error No Circuit Errors Found When Deleting Object

Aug 22, 2013

I m receiving the following error on all projects whether they be existing or newly created. I am getting this error on Revit 2013 and Revit 2014. To reproduce all I have to do is try to delete ANY object in the model. "No circuit errors found".

View 1 Replies View Related

Photoshop :: Program Error When Attempting To Edit Vector Smart Object?

Dec 1, 2012

I'm running Photoshop CS6 (13.0.1) 64bit on a MacBook Pro running OS X Lion. About 60% of the time when I try to double click a vector smart object instead of opening it up in Illustrator I get an error that says, "Could not edit original smart object because of program error." This most recent time it was a smart object from vector data I copied and pasted from Illustrator into Photoshop.

View 2 Replies View Related

AutoCAD 2013 :: Error - Undefined Group Code 440 For Object On Line 4974

Apr 10, 2013

When trying to open the dxf file provided by my customer in AutoCAD 2013, it terminates with the error message as

'Undefined group code 440 for object on line 4974 Invalid or incomplete DXF input -- drawing discarded.'

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved