From: Joel B. <jbi...@co...> - 2005-06-28 18:51:29
|
On Tuesday 28 June 2005 5:28 am, Vario Uneseny wrote: > Hello everybody, > > I am trying to modify Christof's transform.py script so that it can > scale an object by using both x and y scaling factor instead of one > uniform. I've read the Developer's Guide, but I am new to Python, so > could anybody enlight me where should I start. I have already done this. I also have a size option (with units). I have the move, rotate and flip all with optional grids . I also have shear with an optional grid. I have also added a colorize for the duplicate option. I call it "Transform II". I also have the feature of applying the transform to a group of objects as a group or each in the group. That is, rotate 4 objects as a group 30 degrees or ratate each of the 4 objects 30 degrees. Other options are also avaliable. I have packed this with many features. So far I have size, scale, move (relative to self or origin or lock point), flip, rotate, shear. I will add "warp" and another filter. You can select (a check button for each transform) which transforms to use and which not to use. Thus you can flip, rotate, scale, colorize and shear all in one "apply" (or a duplication). This plugin is part of a larger suite of plugins I'm working on (skEffects). Which includes an "object to path" (90% done), "blend to path", "to function", "lens mask" and others needed stuff for skencil. The effects are on a tabbed windows, but Transform II is on it's own tabbed window as a separate plugin. > Another question is, can anybody show how to find out the size (i.e. > width and height) of an object, or even better, how to write a script > to extract out these two numbers. The size's update button will get the size of the selected object. You can even use that size to size another object. The update will update with the current units, but you can use any units (via a selector) for your entry and it will translate. > > Thanks alot, > > Cheers, > > Vario U. > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=Click > _______________________________________________ > Sketch-list mailing list > Ske...@li... > https://lists.sourceforge.net/lists/listinfo/sketch-list > |