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.
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:
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.
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:
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).
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:
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?
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.
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.
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:
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)))
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.
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.
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)?
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.
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!
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 ."
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.
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?
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.
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.
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.
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?
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".
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.