GIMP :: How To Make Curves Spline Get Variable Instead Of Number
May 9, 2012
I've been trying to make gimp-curves-spline get variable (which is number)instead of number and I get error.
For example -when I do:
*(gimp-curves-spline drawable 0 6 #(0 0 0 15 255 255))*
everything works well as it should be.
but if I do:*(define spoint 15)*
*(gimp-curves-spline drawable 0 6 #(0 0 0 spoint 255 255))*
I get an error: *Error: Item 4 in vector is not a number (argument 4 forfunction gimp-curves-spline) #( 0 0 0 spoint 255 255 )*As you can see, all I did was replacing the number 15 with a variable(which is a number) I also check it is a number by the *number?* type predicate
I am attempting to set up a batch that automatically runs gimp-curves-spline on a set of images. However, I have never used Scheme before and therefore am not sure why my script is returning "batch command experienced an execution error"
Here is the command I am using to call the script(via a windows .bat file)
Many times I see that these types of irregular shapes which comprise of spline curve are created with very less or no dimensions, so I want to know how this spline curve was created and can be controlled, if I want to create it in an exact manner what dimension I should use ?
How to curve a piece of sheet metal over the outside curved edge of the attached part. I can do it the old fashioned way but was wondering if it could be done in sheet metal which would give me the flat pack automatically (that way there is less chance for errors). There are several of these baffles joined together by a spine and the sheetmetal will eventually go over all of these, and have a few modifications to shape the end profile.
The outer curve is a spline which has changing radius and hence to use a contoured roll would be rather difficult and time consuming (there are also some flat sections at each end of the curves as well).
Autodesk Inventor Professional Student 2013 is the version I'm using.
I have a skeleton with baked motion capture keys on every frame. I'm wondering if there is a method to convert these baked keys to curves, so it will be possible to start cleaning up the animation. I'm fairly new to dealing with mocap. Perhaps there is a method for achieving this in Motion Builder rather than Maya, that I'm not aware of?
I'm attempting to write a batch script to add some layers to a pre-existing image and save a copy. I've gone through the tutorial, and have run the demo code from Basic_Batch with no errors, but my (what I think of as simple) script throws an "Error: eval: unbound variable: ?" It also seems to cascade the error to other scripts, as I then get "unmatched parentheses: 2" errors from what I assume to be the script immediately following my own during Script-Fu load. This occurs whether running from batch or clicking "Refresh Scripts" from the Script-Fu menu.
What I could find on this forum and Google suggests that I may be required to 'define' one or more of my variables before using it, but for the life of me, I can't figure out which one that would be, and the error (reporting that '?' is undefined!?) I've quintuply (probably more ~_^) checked my parenthesis matching, but they look fine to me.
In case this was an encoding issue, I've tried saving my .scm file as both UTF-8 and ANSI. I should also note that I'm running Windows 7 x64 in English-US.
In Illustrator CS6 and CC, when the stroke width tool is used on a curve, the curve is actually made up of a series of straight lines instead of smooth vector curves:
whereas in CS5 it looks perfect.These images may be too small to see the details, but the difference is there. Is there a workaround for this? Or is it recognized as a bug?
API enhancement/fix in SP1: Cannot create a radius dimension on circular drawing curves projected from spline edges.Does it in some way trying to refer to the issue with nonplanar arcs turning into splines in drawings saved-as AutoCAD .DWG?
System variable to keep a stacked fraction with the leading number?
We open the same drawing on different computers at work and on one computer the number will be 21/2 but on the next computer that opens the same dwg the 1/2 will have been bumped down to the the following line. I don't know if this is a problem with the autostack properties, although I can't find anything about that, or if its a problem with the tabs.
I'm completely at a loss and its becoming a problem because if one person opens a project to plot it and it looks fine but the next person opens it and every mtext in the dwg is wrong it becomes very time consuming to fix.
I'm using the variables panel in Illustrator to pull a data set I've got.
For example there's 2 text variables and 1 number going from 0-359. I'm looking for a script which looks at the variable name and pulls the number, then uses that number to rotate a shape by that many degrees.
(defun layun (target_obj / original_layer original_layer_info target_obj_atts new_layer )(setqoriginal_layer (cdr (assoc 8 (entget target_obj)))original_layer_info (tblsearch "layer" original_layer)target_obj_atts (entget target_obj));setq(if (or(wcmatch original_layer "*-P123"); REMOVES 4 CHARACTERS(wcmatch original_layer "*-P123456"); REMOVES 7 CHARACTERS(wcmatch original_layer "*-P123456789"); REMOVES 10 CHARACTERS );or(progn(setq new_layer (substr original_layer 1 (- (strlen original_layer) ??))) ; NEED TO ASSIGN VARIABLE TO MATCH THE NUMBER OF CHARACTERS TO REMOVE(if (not (tblsearch "layer" new_layer))(progn(entmake ;;;begin to make new layer(list'(0 . "LAYER")'(100 . "AcDbSymbolTableRecord")'(100 . "AcDbLayerTableRecord")(cons 2 new_layer) ;;; layer name(assoc 6 original_layer_info) ;;;re-use original linetype'(70 . 0) ;;;flags - use default flags(assoc 62 original_layer_info) ;;;re-use original color);list);entmake);progn);if(entmod (subst (cons 8 new_layer) (assoc 8 target_obj_atts) target_obj_atts)));progn);if);defun
assign a character where ? is shown so that it matches with the number of characters to remove based on the 3 lines above (see wcmatch lines). At present, whatever number I replace that ?? with, it removes that number of characters from the layer that I selected (if it meets that WCMATCH criteria). Another option which may be more difficult is to be able to have the routine look at the object layer and if it contains -N- or -D- or -NEW- or -DEMO- then to remove all the characters that follow these layer modifiers. This way I can cleanly add another project modifier behind these modifers.
How to sort curve table data by parcel and then curve length? Out here in Oregon, one of the standard ways of defining a curve table is to show the length of curve and have each curve in the parcel grouped together.
I have not figured out a way to do this in C3D. At one point, Sinc had started working on the issue for us, but I don't think he ever got anywhere with it (or at least it didn't get into his add on.
Im using autocad lt 2004. My plotter does not recognize splines, and I would like to convert them to a polyline. How to do this, been trying to do if for a few days now but to no good.
when I highlight the spline it will not give me a option to turn the spline into a pline.
Im trying to subtract a 3D spline from a wall to make a archway. Both are editable polys. When I subtract the 3D spline from the wall using boolean operations It shows the wall as hollow, normally this doesn't happen when I subtract other objects from the wall so what I need to do. I tried looking at existing threads but the only suggestion is collapse the stacks, something that is already done.
I'm trying to make some 3d spline gears in autocad, I start by generating them in eMachineshop then importing into autocad, this works fine but the gear is imported as seperat lines so I can't extrude them, i also cant join the lines because after zooming in there are quite a few gaps. How I can join the lines together without manually connecting the dots? I'll include a copy of the gear, eMachineshop only outputs dxf files as far as i know.
I have some text that I put on a sine-wave path using the PathDeform modifier. Is there some way to make that shape permanent, independent of the sine-wave spline? The DeformPath mod won't collapse on the stack.
I'm trying to create an external involute spline (ANSI B92.2M) Fillet Root Side Fit 26.9mm x 1 mm x 26 teeth x 38 mm long using the spline generator with Inventor 2012. I created a test shaft"M-182-AMA.ipt" that is Ø26.9 mm x 38 mm long with 1 mm radius on each end of shaft.
I use the following steps:
1. After creating component "M-182-AMA.ipt" I select Design tab>>Power Transmission>>Involute Spline. 2. A window appears that has the caption "Involute Splines Connection Generator".In the Dimensions section I choose "Splines Type: ANSI B92.2M - 37.5 deg, Fillet Root, Side Fit, 26 x 1.00 x 38 x 5H/5h" and change the Length to 38 mm. 3. In the Shaft Groove section I use Create new, and I push the Reference 1 button that turns blue, I then select the od feature from the model and I get an error(see attached pic "error1.jpg).
I changed the 26.9mm od to be 27mm and it still gave me the error.
Work Station : Dell Precision R5400 OS: Windows 7 Business 64 Version 6.1.7601 Service Pack 1 Build 7601 Processor Intel(R) Xeon(R) CPU E5405 @ 2.00GHz, 1995 Mhz, 4 Core(s), 4 Logical Processor(s) BIOS Version/Date Dell Inc. A10, 4/30/2012 Graphics Display Card: ATI FirePro V4800 (FireGL V) 1.00 GB Adapter RAM Computer Memory: 8 GB ECC RAM
how to make the line smaller in the start, and wider at the end. With a brush, I can only figure out how to draw with the same thickness all the time..
I'm sure 'variable transparency' is not the right way of putting this.
I have an image which has some text in white. However because of the aliasing the text is not 100% white against the background (black). Rather; the edges are shades of white.
I want to convert the image so that the text is transparent. If the text was 100% white it would be simple. Colors.. Colors To Alpha. However that doesn't work as it doesn't deal with the shades of white around the edges of the text.
I want the shades of white to be transparent with the same degree of opacity as they white. So the white in the image is 100% transparent and a pixel which is say light grey to be 90% transparent. (The end image is going to be used as a webkit mask; showing the background behind the masked element).
I don't know where to start with this. I know PNGs support 8 bit transparency so it should in theory be possible.
My problem is it's in its own menu under Filters and I would prefer to have it under Light and Shadow. So I open the script using Wordpad like I've done many times before with similar scripts and go to edit the menu path. I make the change, save it, and refreshed the scripts and I get the error "eval: unbound variable:" I tried changing it back and I got it again.
Here is the code, again the only line I've changed is
"<Image>/Filters/RSS/Ray S_tudio" to "<Image>/Filters/Light and Shadow/Ray S_tudio" ;Ray Studio v0.2;;Ray Studio - ray effect creation script;;;Version history:;==================================================================;ver. 0.2 (November 27th 2011); - official release;;==================================================================;script-fu-ray-studio;Main function;LIST OF ARGUMENTS:;IMAGE - processed image;;LAYER - processed layerй;;FLOAT - lightning edge;;COLOR - ray's tone color;;FLOAT - ray toning [code]....
I have a problem in autocad7, once i explode text to make it a vector the vectors go from being curves or radius to straight lines, how to make them into curves as we have to run a cutter path the only thing is they cant be splines.
Where is it? On page 332 of Gimp Bible (2010) it illustrates it in the dialog box, but it is not present in mine. I think that I am running the latest version.
I have a long document with text variable running headers along page edges. Behind each running header on the Master Pages, there is a black band. I want the color black to change to several different fill colors, when the running header changes, to define different "sections."
It's one document, no separate chapters or sections, at this point. See attached image.
Is there a way to tie the fill color of these colored bands to the running header so that it changes when the running header does? I think what I'm looking for is a way to make a variable object style (fill) to be triggered by the running header change. I have no experience writing scripts, but am willing to try. Plan B will be to unlink the master items and manually recolor on each page.
My problem is that when I try to modify path, I can only manipulate one curve, and then it won't recognize any more curves - when I hover the cursor above next curve I want to change, the cursor icon is that with rectangle, not the one with four arrows, and when I click on the curve, it just adds new node in this place. It never happened before. I don't know how else I could describe this problem, but I made a short video that displays it better: [URL] ........
I am working on an image of Elvis and using layers and blending techniques to put the music to one of his songs over his face. But I want the musical overlay to mold to the curves of his face. Is there a way to do this? The blend mode I'm currently using is Multiply. I have tried other layer modes but it still does not give me the effect that I'm looking for.