Problem in loop... How to create and lock a set of PathItems?

Hi all!

I'm a noob... a very confused

And I'm not trying to get this thing to work

So here's what I have. The first loop catches from geometries in the active document and he turns around itself to create duplicates. The second loop is supposed to work around several geometries autour geometries newly created.

But instead of creating a radiating pattern, copy the following code builds a Tower: for the second loop every time, he seized the last geometry drawn instead of what is in the 'Original '.

Can someone explain what is the problem? Thank you!

NumPaths = 1 to frontDocument.PathItems.count

Set myPath = frontDocument.PathItems.item (NumPaths)

For index = 0 to 30

Define newPath = myPath.Duplicate

Call newPath.translate (100 * sin (6.14* index/30), 100 * cos (6.14* index/30))

Call newPath.rotate (360 * index/30)

Next

Next

The original value = frontDocument.PathItems

NumPaths = 1 to Original.count

Set myPath = Original.Item (NumPaths)

For index = 0 to 30

Define newPath = myPath.Duplicate

Call newPath.translate (100 * sin (6.14* index/30), 100 * cos (6.14* index/30))

Call newPath.rotate (360 * index/30)

Next

Next

something like that?

first loop is a 'ring', in order to make this 'ring' turning around to make the sphere that you do a group, so the second loop duplicating the 'ring' (Group) and basically does the same thing as the first, but uses the group instead of pathItems.

    For NumPaths = 1 To frontDocument.PathItems.Count
              Set myPath = frontDocument.PathItems.Item(NumPaths)

            Set myGroup = frontDocument.GroupItems.Add 'add a group

              For Index = 0 To 30
                        Set newPath = myPath.Duplicate(myGroup) 'add each duplicate to the group
                        Call newPath.translate(100 * Sin(6.14 * Index / 30), 100 * Cos(6.14 * Index / 30))
                        Call newPath.rotate(360 * Index / 30)
              Next
    Next

     Set Original = frontDocument.GroupItems 'make original all groupItems instead of pathItems

    For NumPaths = 1 To Original.Count
              Set myGroup = Original.Item(NumPaths) '

              For Index = 0 To 30
                        Set newGroup = myGroup.Duplicate     'duplicate the groups
                        Call newGroup.translate(100 * Sin(6.14 * Index / 30), 100 * Cos(6.14 * Index / 30))
                        Call newGroup.rotate(360 * Index / 30)
              Next
    Next

Tags: Illustrator

Similar Questions

  • How to create and boot from a separate removable usb drive?

    Do some testing software and wish not to overwrite my MBR disk (c :))

    It's a matter of Google:

    http://www.google.com.au/search?hl=en&source=HP&q=How+to+Create+and+boot+from+a+separate+Removable+USB+Drive&btnG=Google+Search&Meta=&aq=f&OQ=

    Help us with the problems here with the Vista operating system installed.

    See you soon. Mick Murphy - Microsoft partner

  • Folder hierarchy: how to create and modify a folder hierarchy?

    How to create and modify a folder hierarchy?

    Here's how to change the default template for a folder:http://www.vistax64.com/tutorials/70819-windows-explorer-folder-view-settings.html.  Default behavior is to select the model based on the first type of file placed in the folder (you must choose something).  Vista sets thefolder type template according to what are the types of files in the window and the settings display window Explorer. This will show you how to resetthe Windows Explorer folder view settings, disable Automatic folder Type discovery and increase theview of the folder cache to have Vista don't forget display settings, model of file type, size, or position of a specific window for when it was still closed to the location of specific path.

    It does not work with the Sub record under, Open with,open in a new tab (Internet Explorer), etc... dialog windows of type through the goodFile menu bar item. These don't seem to be able to have their size or their position to recall. For the latter, you can use the free programhttp://autosizer.en.softonic.com/to resize them.

    Here is another article on how to modify the columns in Windows Explorer and sort in Vista:http://www.vistax64.com/tutorials/108665-column-customize.html.  This will show you how Add, Remove, move, change the widthand change the sort order of the columns in Windows Explorer in the way that you want.

    Here is another article on how to change the display of the default folders in Vista (but she argues, it is not a perfect solution and can revert to the previous behavior is not as good as the two prior links provided:http://news.cnet.com/8301-13880_3-10019957-68.html.)

    I hope this helps in your situation.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to create and apply a vc in jdev 12.2.1?

    Mr President

    How to create and apply a vc in jdev 12.2.1?

    I did like this, but do not know what my name of vc, it's VdetViewWhereCriteria.

    My name of vc is

    vc.png

    Concerning

    In the AppModule, you must select the view criteria.

    Open AppModule--> Data Model--> Select the VO (VdetView1)--> press the Edit button--> shuttle view criteria

    as:

  • How to create and use Webservice using WSDL controls in weblogic portal10.3

    I have WSDL, how to create webservice control using WSDL in portal weblogic 10.3 and use these controls to call the Web service methods?
    Please give me the links of documents for this.

    Thank you

    Published by: user9041086 on August 12, 2010 09:26

    See the discussion below

    How to create and use Webservice using WSDL controls in weblogic portal10.3

    Thank you
    Vincent Sarvabatla

  • How to create and delete partitions automatically?

    How to create and delete partitions automatically?
    The environment is (10.2.0.3) 10g Oracle on the RHEL4.0 system.
    I want to partition the table of MESSAGES by date (NUMTODSINTERVAL(1,'DAY')). One partition per day. Because the table is huge, only 2 partitions (as of yesterday and today) are required to be available online. All partitions as earlier than the day before will be saved, and then dropped. I want to do the partition to create and delete the work performed automatically. How to do?

    Thank you

    junez wrote:
    Could do in detail?

    Here is an example of a procedure (part of a package) that adds/add a partition to an existing partitioned table schedule:

    procedure AddHourlyPartition( tableName varchar2, hour date, partitionName IN OUT varchar2 ) is
            sqlCreate       varchar2(4000);
            d               date;
    begin
            partitionName := GetHourlyPartitionName( hourly );  -- name of partition to create
    
            if existsPartition( tableName, partitionName ) then
                    -- nothing to do
                    return;
            end if;
    
            d := TRUNC(hour,'hh') + (1/24);                                -- upper date limit of the partition
    
            sqlCreate :=
            'ALTER TABLE '||tableName||'
                    ADD PARTITION '||partitionName||'
                    values less than
                            (TO_DATE('''|| TO_CHAR(d,'yyyy/mm/dd hh24:mi:ss') ||''',''yyyy/mm/dd hh24:mi:ss''))'
            ;
    
            ExecSQL( sqlCreate );
    
    end;
    

    The partition is safer to create partitions according to the experience?

    It is always better to write good packages in PL/SQL. Packages can (and should) use the application programming interfaces (API). Because our partition custom package that allows the management of partition. Or a messageLog package that allows for logging of application messages, errors, and debugging messages. Or a Notification package that allows to be send by email or SMS notifications. Etc.

    Design and software development, we should always approaches a "+ Lego mentality +"-which is to create building blocks ("+ Lego bricks +") which can be used and reused over and over again. Modularization is of crucial importance in software engineering as the result is not only of reusable code, but also the code that is easier to maintain, extend easier and easier to debug.

  • How does "create and wire case unwired? I can't do anything...

    OK, I have a structure with a ton of events of the event.

    I just added a value that passes through IT. This value is a shift on the outside loop register.

    I see that when your right click the tunnel on the event... There is the switch to turn off 'Use Default if not wired'.

    I also see some options that seem to be doing what I want to do... and that's for cable all unwired connections on the other events with "Entry Tunnels Linkted"-> "create and wire Unwired case."

    When I click on it, the cursor changes to a new form... but here... I can't figure out how to make it work... I tried to do a right-click on the tunnel 'broken' for this purpose... I tried a left click in an event that is unwired... but nothing.

    Can someone help me out here... I think that's what I want... but can't make it work.

    Thank you in advance,

    Cayenne

    After clicking on create and thread, click on the terminal across the structure you want to feed the exit tunnel.  If it is already wired directly to the other tunnel, he'll know what you mean without the extra step to choose the side of the entrance.

  • How to create and apply a condition to the selected text?

    Hi all

    I am new to Scripting InDesign. I use Flex 4.6, so I use ActionScript. I want to apply the conditional text in some text selected in my document. I understand the process manually. But I'm problem do it programmatically.

    I see that there is a Condition class. I created an object of this class and tried to set some values.

    var nameCondition = new Condition();

    nameCondition.indicatorMethod = ConditionIndicatorMethod.USE_UNDERLINE;

    nameCondition.label = "name";  Could not understand what label is synonymous with

    nameCondition.name = "name";

    nameCondition.visible = false;

    Now, when I debug, I see that the values that I have assigned to the object nameCondition are never affected.

    Also, I came across the appliedConditions method that is available in the app and doc. But I don't know how to use it.

    Help, please.

    Hi poortip87,

    Find the code JS, his work below InDesign CS5.5 only.

    var myDoc = app.activeDocument;
    try{
        myDoc.conditions.add({name:"TEST", indicatorColor:UIColors.GOLD, indicatorMethod:ConditionIndicatorMethod.USE_HIGHLIGHT, visible:false})
        }catch(e){}
    
    app.selection[0].applyConditions(myDoc.conditions.itemByName("TEST"));
    

    THX,

    csm_phil

  • How to create and configure separate user accounts in Windows XP?

    I had my computer cleaned because of viruses, how create and configure user accounts separate?

    See if the article on the link below answers your question.

    http://support.Microsoft.com/kb/279783

  • Problem os7 BB9900 banner, home screen and lock screen theme

    Problem BB9900 os7, banner, the home screen and lock screen, someone at - he advice me please.

    I changed it to 28, and it seems that the buttons in the call screen are eleveated slightly too.

    I suggest to use 32.

  • HOW TO CREATE AND MANAGE APPLICATIONS OF PLANNING CLASSIC ON EMP 11.1.2.4

    Hi all

    We installed and configured 11.1.2.4 EMP, and was happy to work on planning that was created by using the workspace EPMA until we came across a requirement for reports plan type, coming to the point:

    1. in the EMP 11.1.2.4 how to create a classic application and how to perform administrative tasks, any suggestions would be helpful.

    2 if we conduct EPMA planning application, then how to convert it into classic?

    concerning

    Shahrukh

    Try to run it with - Setting of Applications Using Planning Application Administration

    Is what I'd do to convert a conventional application of EPMA

    Set the property to true EDIT_DIM_ENABLED - Management of Dimensions in Planning Applications deployed

    Restart the planning

    Extract the application of planning using LCM.

    EDIT_DIM_ENABLED property set to false

    Restart the planning

    Remove application EPMA

    Import the backup LCM to build the new classic application.

  • How to create and print an 8 x 10 Headshot?

    I use LR CC and trying to learn how to create a picture of head of 8 x 10 with the names of customers in the text at the bottom of the photo.  8 x 10 must also have a white border around it.  Thanks in advance for anyone who can help me with this!

    The steps shown above do not address the case when you export the picture for later use

    1. Photos are automatically 'saved' in Lightroom; There is no need for to run you a "Save" command (or y at - it a "Save" command). File-> export creates a copy of the file on your external (or other) Player for later use. To include a text on the pictures, you need a plugin called Mogrify
    2. Ignore these instructions, they do not apply to your situation. You can apply corrections to several photos in any number of ways. You can do this via copy and paste at the bottom left of the develop module, buttons or by using automatic synchronization (see Auto Sync ' Blog of Julieanne Kost ")

    In addition, if you want to print at 8 x 10, you have to first harvest to a lengthening of the 8 x 10.

  • How to create and animate a viscous black oil?

    Hello!


    Can I ask you a question?

    I want to create a viscous, oily liquid and that animate it so it "wobbles".

    But I don't even have an idea how to create the chart.

    I have attached a picture. Here you can see how the liquid should look like.

    (In the background. Red dots and other stuff important deosn)

    It would be so great and very useful if someone have an idea and would share.

    Thank you for the advice,

    best,

    Peter

    Bildschirmfoto 2015-10-16 um 20.17.10 copy.jpg

    If you talk about the background, I would like to start by creating a shape with two fillings layer degraded at right angles to each other. The upper gradient would be defined to multiply if you end up with something like this:

    Then I would start to play with things like Action Ball CC or Mr Mercury to get something like that which moves slowly:

    You could then compose before as a layer and add something like CC glass to end up with something like this:

    Then you try just to get the look you want. Given enough time you could replicate the appearance of the background very closely. There are a lot of simulation and distortion effects to play with. The trick is to start with something that will give you different colors. Creating a rectangle with a gradient and then duplicate the gradient and play with angles and blending modes can give you a good place to start.

  • How to create and save a preset in Premiere Pro CS4 video transition

    I read the instructions here http://help.adobe.com/en_US/PremierePro/4.0/WS5B38CF0A-C465-437d-9D19-41C35ECD6200.html, create and save a preset effect. The problem seems to be that the transition effect, a cross fader, does not appear in the effect controls panel after being applied to the element. So, I can not select and save it as a preset.

    What Miss me?

    Thank you.

    OK, you can apply the default transition (video and audio, or just one or the other) to a selection of clips. If you have a particular transition you want, right-click in the effect controls panel, and then click "Set selected as Default Transition"; If you want to change the duration, click the menu drop-down of the effect controls panel, and then click 'default Transition duration. This will open the preferences window, where you can change the duration of the video and audio transitions.

    Select the clips you want to add the transition in the timeline panel (you can also press Alt to select only the part video or just audio, too) and go to the sequence > apply default Transitions to selection. Your default transition with the default duration will apply to all selected items. Of course, maybe it's only marginally useful if you actually want to custom effects, but you can go into each person and change the settings you like, such as management. This gives you at least a starting point.

    We hope transition presets are part of CS5...

  • Data Modeler: how to create and use the collection type

    Hello
    essentially of departure I don't understand how (for example) create and use the data based on the type of data varray type.

    Please notify.
    Thank you
    Andrew

    Hi André,.

    You can create new types of collection (varray/table) in two ways:
    (1) in the browser - find 'Types of data' > 'Types of Collection' node menu dropdown - there just 'create new collection type' it
    (2) in the types of data model diagram - you can create collection "some type structured" or collection of references to the it - use 'new Collection... '. "tool and click first on sight structured type and after the structured type that will contain the collection - new attribute is added to the latter and if there is none this type of collection already didn't set the new collection type are created and you can change it later.

    Philippe

Maybe you are looking for

  • How to generate a single pulse with DAQmx

    I need to generate a single pulse using DAQmx.  Many of the example of the AO screw blood generation using waveform (multi) .vi buffer generation.  This VI generates a + / amplitude.  I want that my pulse to go from zero to a positive amplitude.  How

  • Compiler error. Report to Technical Support OR: err c = 0xF1 ufppushop

    Compiler error. Report to Technical Support OR: err c = 0xF1 ufppushop When recording / runing a vi that performs calculations in a node formula containing several if and a switch statement. (LV6.1, WinNT)

  • Drive mapping is not allowed

    I have 3 computers on a home network and I'm trying to map a drive from one to the other.  I use Vistia Ultimate to map a drive on a Vista Home Premium.  I get error 0 x 80070005 access denied. I have only the administrator account, which requires no

  • RV180W - multiple wireless access points

    Hey there, looking for some advice. I currently have 2 two devices Cisco RV180W and I'm looking to expand my saturation wireless in my house and you're looking for the best way. a bit of back story... I originally had a signal (1) RV180W and it was i

  • Specific keyboard events

    Hi all I read a post showing how to display and hide the keyboard, then I could listen to type by hiding a textbox behind the keyboard. However, I can't seem to find a way to listen to, as when a user presses the BACKSPACE on the keyboard of the play