How to expand an illustrator object by providing only dimension not percentage using script?

Hi all

I need to know if there is a method to enlarge the object giving the width and leave the height to increase proportionally.

It would take only this line of code.

Marie rosine

Hi virender_CTS,

If I understand you right, you can try something like this:

var pI = app.activeDocument.pathItems[0];
var newWidth = 150;
var theFactor = newWidth/pI.width*100;
pI.resize (theFactor, theFactor);

Have fun

Tags: Illustrator

Similar Questions

  • How the names of the objects are defined for the getAnnotRichMedia() to use?

    I have seen several examples in which accesses the getAnnotRichMedia(0,name) a SWF or FLV file by using the name of the object. Rm1 seems to be the automatic value for the first time in the array of objects accessible through getAnnotsRichMedia (0) [0].

    I imagined the name field is defined in the file SWF or FLV. to be defined as one layer in the PDF file. to be set as a parameter when the object is placed in the file; a property of the object defined during construction and, finally, to be fixed by a script of the iterate document objects rich media on the page.

    Unfortunately, the SDK gives a lot of description but does not give the simple example I need.

    Can someone tell me how it's done?

    The name is automatically assigned when the annotation is created. It's an internal concept, so it is read-only - you can not change it with scripts and it is not collected all parameters of the media file or via the dialog boxes.

  • In the Web, how to detect if an object is on stage or not?

    Something like:

    if (my_object_is_instantiated_on_Stage) {
    } 
    

    If you know the name of the instance of the object, then you can ask for it:

    {if (this.) InstanceName)}

    do something with it;

    Alert ("Something");

    }

  • How can I reinstall Illustrator 5.1 - menu police does not load correctly

    I have cleared the cache of each font, moved fonts, etc. My computer works better, but fonts Illustrator do not always appear, and each time that I exit the application, it crashes. I don't know what to do at this point but to reinstall the software.

    The menu of the fonts is the system failure. Open system preferences > accessibility > display and check the box that says reduce transparency.

  • How can I change my search engine provider

    How can I change my search engine provider that will not change to Bing.com

    This has happened

    Each time Firefox opened

    == crawler.com resumed my search engine

    It is by default back to Yahoo, whenever I have change to Google.

  • 23 "monitor a 3-1/2" black band on the left side of the desktop background. In other words, the bottom would fit on a 19 "monitor. How to expand the context in which to adjust Monitor?

    23 "monitor a 3-1/2" black band on the left side of the desktop background. How to expand the context in which to adjust Monitor?

    It's the monitor that is provided with the DELL Expirion computer when it was purchased in July 2012.  I paid a "technician" (certified) to transfer the info from my old computer.

    If its a LCD monitor, you PC resolution to the native resolution of the screens?

    Some monitors have a button self-configured, try pressing that. It can help if there is one.

    At the same time, in your 19 "" are you the full desktop or is it lacks a little? If so, try to change the settings for horizontal and vertical screen on the monitor to move the image.

    Sorry if this is how to navigate, it's hard to describe.


    More info of calibration here - http://windows.microsoft.com/en-AU/windows7/Getting-the-best-display-on-your-monitor

    Also, some graphics card drivers were themselves built the calibration setting, which may be worth a visit, but this can vary from machine to machine and cards.

  • How to expand bookmarks on new laptop Win7 64-bit? Can not find the file userChrome to edit (FF 25.0.1)

    I have a file edited userChrome.css I took a computer to another that has parameters like the width of the column bookmarks in it. In the past, I just pasted in the correct profiles folder, overwriting the old, but I don't see any "usercrhome.css" anywhere on my C drive. I guess things are different in FF25 (that I just updated to this new computer). So now, how to expand the bookmarks column?

    Do not use CEP Options > customize through the Addons Manager, this is for customizing the appearance of the extension of the CEP - is not for editing the files 3 'user '.

    Press the Alt key to display the menu bar, and then click Tools. Use of the ChromEdit Plus > ChromEdit menu item and then see the userChrome.css tab paste your code in the box and then restart Firefox.

  • How can I copy some object without it being related to the original?

    When I copy a pushbutton to Lookout 5.1 it is linked to the original.  If I change the name of the newly pasted key (or any other property) it changes it and the original object.

    How to create a pasted object that has the same properties as the original without the 2 related?  Or how to break the link?

    If you select a displayed object, then do a copy & paste (ctrl + c ctrl + v, copy & paste in the menu drop-down change or hold down the SHIFT key & drag) you make a copy of the original object.  If you want a new object created, select the display object and press ctrl (not updated) & drag.  Or use Object Explorer when ctrl + c ctrl + v or right click contextual menu to create new objects, but not display.

  • normally the letters on my Inbox is always low, how to expand it?

    small letters

    How to enlarge the letters on my Inbox? normally the letters on my Inbox is always low, how to expand it?

    You can change the font size in messages via Tools | Options | Read | Fonts or via view | Text size.  If you tell the police of the message header, which is dictated by the world of Windows and you can change it click with the right button on the desktop and go to properties. Appearance | Advanced and change the icon font there.

    Steve

  • How to uninstall tencent soso internet search provider explore

    How to uninstall tencent soso internet search provider explore

    Hello

    Thanks for posting your query in the Microsoft Community Forums.

    The problem description, I understand that you can not uninstall tencent soso internet search provider explorer on the Windows 7 computer.

    I think that the search provider of TENCENT SOSO was downloaded with the QVOD PLAYER (P2P of China) even if you clear the check box.

    To remove the SOSO search engine, I suggest trying the following steps and check if it helps.

    Method 1

    Check first if any program associated with tencent soso is available on the computer, if found remove them and check.

    Uninstall or change a program

    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

    Method 2

    Check if there is an option for tencent soso toolbar in Internet Explore.

    (a) open Internet explorer, click view and then click on toolbar and check if you can find tencent soso toolbar available.

    Check later in the search provider option if soso tencent is available as a search provider.

    (a) open Internet Explorer, click the Start button. In the search box, and then type Internet Explorerin the list of results, click on Internet Explorer.

    (b) click the Tools button, and then click Manage Add-ons.

    (c) in Manage Add-ons, under Add-on types, click search providers.

    Method 3

    (a) open Internet Explorer, click the Start button. In the search box, and then type Internet Explorerin the list of results, click on Internet Explorer.

    (b) click the Tools button, and then click Manage Add-ons.

    (c) in Manage Add-ons, under Add-on types, click search providers.

    (d) to the bottom of the screen, select the prevent programs from suggesting changes to my default search provider , and then click close.

    How can I prevent programs from changing my default search engine?

    http://Windows.Microsoft.com/en-us/Windows7/how-do-I-prevent-programs-from-changing-my-default-search-provider

    Try these steps and let us know the status of the issue. If you need further assistance, we will be happy to help you.

  • How to calculate the 2 objects QTime?

    Hello

    I have 2 QTime object.

    QTime q1 = new QTime (3,0; 0)

    QTime q1 = new QTime (2,30,0);

    How can I calculate 2 object? I mean q1 - q2.

    I thank in advance

    mSecsTo gives you the difference in milliseconds during which between two objects of QTime

  • How to check the JSON object properties available

    Hi I have a JSON of WebService object.

    How to check the available JSON object?

    ex JSON:

    {

    name: "someName".

    DESC: 'someDesc '.

    }

    How to check the available name?

    Because sometimes not available from the server name properties

    void MyClass::httpFinished(QNetworkReply* reply)
    {
    QString data = (QString) reply->readAll();
    bb::data::JsonDataAccess jda;
    QVariant variant = jda.loadFromBuffer(data);
    QVariantMap variantMap = variant.value();
    QString name = variantMap.value("name").toString();
    }
    

    I want to hide component Label on my .qml if name not available from webservice.

    Thank you

    Kaz32 wrote:

    Hi I have a JSON of WebService object.

    How to check the available JSON object?

    ex JSON:

    {

    name: "someName".

    DESC: 'someDesc '.

    }

    How to check the available name?

    Thank you

    If you want to check if the name is available, you must use

    bool nameExists = variantMap.contains ("name")

  • WHERE CAN I FIND BRUSHES AND HOW TO ADJUST THEIR ILLUSTRATOR DRAW?

    Adobe Illustrator draw (mobile application) installed illustrator draw mobile for android on Samsung Galaxy Note 4, Note 10.1, Note Pro 12.2, 5.1.1 android running.

    I can't understand how to use brushes. Where are the others? Yes, there are four brushes in the side panel, but surely there must be others. The four options available are not usable because the width cannot be adjusted to proportionate, appropriate, dimensions can be used. Yes, there is a slider to adjust the width, but setting lower the brush stroke is so huge that it is useless. I must be missing something here. There must be somewhere brushes and there must be a setting function which reduced the width to a usable line but where?

    The four brushes work really exceptionally well if you have sensitivity to pressure as with an iPad Pro and a pencil to Apple. I don't know if there is a pressure for the Galaxy Note pen. Before I got my iPad Pro and a pencil, I primarily used Adobe Sketch drawing with, because it gave me a better control than the draw. They are fundamentally different, but because Sketch creates bitmap images and draw create vector shapes.

  • How to know which user object has a LOBSEGMENT given as SYS_LOB0000121913C00011$ $

    Hello

    I'm going to pretend to HW... So far, have been the following:

    1. Select DBMS_UTILITY. DATA_BLOCK_ADDRESS_FILE FOLDER (ID2) #.

    DBMS_UTILITY. DATA_BLOCK_ADDRESS_BLOCK (ID2) BLOCK #.

    the lock of v$ where type = "HW";

    11 1930

    11 1930

    11 1930... 29 documents returned.

    2. Select the owner, segment_type, nom_segment from dba_extents

    where file_id = 11 and 1930 between block_id and block_id + blocks - 1;

    MuUser LOBSEGMENT SYS_LOB0000121913C00011$ $

    But, now how can I find the object (say, table column and lob)?

    Also I used SAMS and LMT.

    Use the built-in DICT display for information on items in the dictionary

    Select * dict where table_name like '% LOB % '.

    results in DBA_LOBS and USER_LOBS

    and BINGO

    Often, there is no need to ask here, you have to just learn to use what is already there (and has been documented)

    --------------

    Sybrand Bakker

    Senior Oracle DBA

  • How to count the page that is provided on page element

    How to count the page that is provided on page element

    Hi durgeshj41842015,

    the kDocBoss has an IPageList interface with GetPageCount() function.

    Markus

Maybe you are looking for

  • Silverlight wins crashing, have latest Firefox and installed Silverlight.

    Silverlight from Windows crashes when I try to display 'live' TV channels. I have latest Firefox installed and have also uninstalled and reinstalled the latest version of Silverlight. This process worked the last time I tried a couple of weeks. Sever

  • change in behavior of the button home and end

    HelloI have a problem with the behavior of the home, end, PG. PREC, PG. next and arrow keys. After that I have upgraded to version 6, they do not work as expected.I disabled each extension and the behavior is always the same... They work as intended

  • 3 monitors listed in the Device Manager on Tecra A6 PTA60E

    I have a PTA60E A6 under Xp Pro SP3 with all updates. I notice that in Device Manager in the monitors, I have three monitors monitors under graphics cards and Play Plug listed abd, I have the Intel 945 chipset appears twice. How to get back to showin

  • HP Pavilion 15-bc000nx: Webcam not working not

    my web camra is not working I just bought this laptop it's new I've updated the operating system and updated the driver (from the internet (aut research)) HP Pavilion 15-bc000nx (ENERGY STAR) Model #: W7B64EA

  • Win7 PRO update - to get the Windows XP Compatibility Mode = No. WORKY!

    I bought a fairly expensive system, it comes w / no NEED Win7 HOME edition-paid the cost of upgrade ridiculous just so that I could have programs Windows XP compatibility because NONE of the programs my WinXP Pro embarks on this edition of Crapola fr