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
ADVERTISEMENT
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
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
Sep 2, 2013
Python plugins are not installing. They don't show up. Script-Fu works fine though.
View 9 Replies
View Related
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
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
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
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
View Related
Mar 21, 2013
Printing OLE objects via AcCoreConsole? When printing from AutoCAD itself, I'm able to print OLE objects, but when using AcCoreConsole to print, OLE objects do not show up on the print.
View 4 Replies
View Related
Dec 7, 2012
I have made a plug-In for AutoCAD 2013 which reads the x-Ref from a DWG File.
However, I wants to read this xRef Details (with parent child tree information), from an Console or Windows Based Application. i.e. without loading DWG in AutoCAD, Is it possible to directly read the xRef details?
View 1 Replies
View Related
Jul 26, 2012
this message generates every 10 seconds in the Console. It's practically taken over the entire log.
7/26/12 5:34:21.950 PM com.apple.launchd: (com.autodesk.adlm) Throttling respawn: Will start in 10 seconds
I found the unix command to kill the license manager, but it comes back after a restart of the system. Is there a reason Smoke Pre-Trial is causing this and can it be fixed?
View 3 Replies
View Related
Aug 14, 2013
So I was getting these messages in the console;
com.apple.launchd[1]: (com.autodesk.adlm) Throttling respawn: Will start in 10 seconds
com.apple.launchd[1]: (com.autodesk.dl_mpd) Throttling respawn: Will start in 10 seconds
Thinking they may be the cause of very slow startups, I followed these instructions. URL...And now the Multi-purpose daemon won't start/unknown.
View 8 Replies
View Related
Aug 27, 2012
I have a question about new feature "Core Console".
Is there any ActiveX Interface for "Core Console" like "AutoCAD"?
ex.)
// this code can get AutoCAD COM Reference.
object obj = Interaction.CreateObject("AutoCAD.Application.19");
// Is there any code for "Core Console" like this?
// object obj = Interaction.CreateObject("AcCoreConsole.Application.19");
Reference: [URL] ........
View 3 Replies
View Related
Nov 21, 2012
I'm trying to automate plotting DWG to make PDF.
My File :
My DWG has one model and one paperspace with view of the model.
Each view can have many viewport and has a cartridge.
My Goal :
I want a PDF File. One view per page.
My method :I have an intermediate step, which create many Postscript File(One per View)
The second step use GhostScript to concate PS Files in a PDF.
The steps:
1st step : Read DWG File to create script file, in order to automate plotting with AccoreConsole.exe. My method give me the point for plotting in a window with both corner.
2d step : Use the Script File and Software like (TRUEVIEW or ACCORECONSOLE(Autocad 2013) to create PS Files.
Last step : Run GhostScript to make my PDF File as I wish.
Problem :
Old method It works with DWGTrueView, but I would like a silent mode for executing.
Solution ==> use AccoreConsole.exe include in Autocad 2013
New method Using Accoreconsole with a ProcessStartInfo, I realized that accoreconsole.exe can raised error that DWGTrueView didn't raised.
It works with some files, but sometimes, it's crashed, and I don't understand why.For exemple, a file that succeed with DWGTrueView
View 4 Replies
View Related
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
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
May 14, 2012
I am working on customizing our content center, or at least learning about how to do it and am getting completley lost. Maybe it is just the termonology. In the Wiki help instructions I am instructed to open the "data management server console" and a path is given in the last line.
When I follow this path the only options I find under Autodesk data management are: links to open the vault or to open the auto loader.Am I missing something, or is the main opening screen to the vault what is considered the server console? I am also looking for where to open the "Content Center Editor"
Since the content center parts are EXCELL baised I should be able to do most of the editing once I figure out how to get into them but I am having a hard time getting there. The one thing I am not sure I am going to be able to figure out is that I like to place a work datum midway between the start and end datums. It is an easy job to place an offset datum from the start datum and then go into the propertys and set the offset + B_L/2. However I am not sure how to create this datum in the family prior to creating the instance.
View 3 Replies
View Related
Apr 20, 2006
I have 24 layers in my current design and am almost finished. But 15 min. ago I did hear that they changed the size, it was vertical to large and I have to cut out a piece.
Is it posible that I remove a piece somewhere in all layers and keep the drawing, created with the rec-tools and others, correct on their layers? Most of them are already rasterized.
View 4 Replies
View Related
Jul 2, 2013
my gimp 2.8.6 makes majority normal layers turn into text layers..
Even if i "discard text information" from layer..and then save it as .xcf it doesnt work! Same layers appear as text layers when i open that .xcf Its not a big deal but it really slows me down when im working with layers..
View 14 Replies
View Related
Jun 20, 2013
I merged my layers down to scale to proportion and I thought I was done with the project, so I saved it and exported. I then learned that I did something incorrectly, so I went back to the project only to remember I merged the layers and I don't know how to undo that. How do you revert the layers back to layers?
View 4 Replies
View Related
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
Mar 15, 2012
I know when CS5 first came out even the standard modal windows for Levels, Curves etc. were housed in a Palette and that blew my mind with hatred. It seems they've fixed that but are still limiting Adjustment Layers to the same Palette fate.
Is there any way on earth to switch back to the standard modal type window for Adjustment Layers? Forcing us to use them in a Palette window makes me want to go get a root canal. I've had CS5 for over a year and simply cannot use it due to this and some other issues.
View 14 Replies
View Related
Apr 27, 2011
How to remove or close or shut off the layers menu.
View 6 Replies
View Related
Aug 2, 2012
I'm working with our new copy of AutoCAD 2013 and using the Visual LISP IDE to create code. I also have an AC2009 machine right next to me for other tasks. On the 2013 machine when I click the "Load Active Edit Window" button it switches to the console screen but there are no messages printed like:
$
; 37 forms loaded from #<editor "C:/LISP/My-Lisp.lsp">
_$
This of course is making it extremely difficult to debug. I have checked the environment settings and they are exactly the same on each machine. The AC2009 machine prints the messages but the AC2013 machine is just giving me a blank console screen.
View 1 Replies
View Related
Jun 25, 2012
The routine below delete group of blocks by name, but if the blocks are on locked layers, these are not removed.
How can improve the lisp?
(defun c:deleteblock (/ rn ss)(defun Jd (realname) (setq ss (ssget "x" (list '(0 . "INSERT")(cons 2 (strcat "`*U*," REALNAME))))) (mapcar '(lambda (x) (if (not (eq REALNAME (vla-get-effectivename (vlax-ename->vla-object (cadr x))))) (ssdel (cadr x) ss))) (ssnamex ss))(setq ss_len (sslength ss)) (command "_erase" ss "") ) (setq rn (vla-get-effectivename (vlax-ename->vla-object (car (entsel "
Select the block you want to delete:"))))) (jd rn) (princ (strcat "
" (itoa ss_len) " Blocks called "" rn "" has been deleted")) (princ) )
View 9 Replies
View Related
May 3, 2012
I have a drawing with a bunch of layers that cannot be deleted since they are nested in block definitions. However, the blocks are not in use and cannot be purged. I think it is because they are referenced for point styles, that are also not in use. Is there a way to delete the point style in order to clear these layers and blocks?
View 1 Replies
View Related
Oct 3, 2012
I recently downloaded gimp and am in the process of getting used to it.
I have discovered something that is a bit of annoyance to me. when adding text to an image, I get the following dialog box over where I want to put the text.
I have set it to use editor under the text tool, but it doesn't remove the on-screen floating dialog box, also selecting use editor doesn't seem to stick, and it reverts back to being unticked upon restarting the program.
is it possible to remove this dialog box, as well as make the use editor method the default?
View 11 Replies
View Related
Aug 25, 2012
My beautiful baby has light glare in her eyes.
[URL]
View 4 Replies
View Related
Jan 21, 2013
I have a drawing that is 720X596 px and I have used the rectangular tool and select - invert, cut out a 222X444 px part that I need to save as a jpeg. However, I can not figure out how to either : delete the 720X596 drawing to leave the 222X444 drawing: or, select the 222X444 drawing to save it.
View 2 Replies
View Related
Sep 25, 2012
When i brought up my brushes dock, among the brushes was a little design I had cut out! How it got there but it is definitely not a brush. The drop-down menu for the dock had "delete" but it wasn't active/useable. How to get rid of that non-brush?
View 3 Replies
View Related
Jun 29, 2011
it is possible to remove a reflection (that is basically a duplicate of an already existing image, if the angle is good) from a photo. I have a feeling it might be possible, and involves layers and cloning, however I do not know how to get this done. Almost like a reverse-cloning tool. Sample picture provided.
Obviously a lot of factors are involved like glare and angle, but say you could see through the glass, and the reflection angle is a perfect 45 degrees or almost a exact duplicate of existing image, just flipped, is it possible to remove the reflection image and obtain more of the other side of the glass?
View 4 Replies
View Related