SAVE (multiple) IMAGE with sequential numbers?

Discussion in 'Microstation' started by ydbarness, Feb 1, 2007.

  1. ydbarness

    ydbarness Guest

    hi there!
    I've got some 3-d models of trees created from cones and lines in
    Microstation.
    I've been writing scripts that rotate the whole tree model, and would
    like to do an image save with a serial number.

    when you do a screen capture, and give it a name like "capture image
    1"
    microstation identifies the one and then makes the next images 2, 3,
    4....

    im trying to get the same thing done with a save image (or even
    better, save multiple images) but it doesnt seem to pick up the serial
    number, it just wants to start the file name as the DGN file name!

    the script goes like this:

    i've put a fence around it all in a top view, and then the script goes
    something like

    "aa=5
    rotate icon
    screen capture

    aa=5
    rotate icon
    screen capture"

    and this goes on for 72 rotations to make a full 360 spin. I just hold
    down the enter button and save the images, and go look at the numbered
    images in the directory.

    But screen capture is pretty limited, only goes to screen resolution
    DPI. It would be much more effective to do a save multiple image
    script, but i cant figure out how to begin the sequential number.

    Is there any way to define the file name for an image save (with
    sequential number) from the script level, or somehow from the first
    dialogue box asking for the file name?
    Even when I do the script with save image, and put in a numbered name
    in the dialog box, the next few boxes reset the output file name to
    the DGN file name.

    Thanks for your help!
    ydbarnessATgmailDOTcom
     
    ydbarness, Feb 1, 2007
    #1
  2. You should try using the Flythrough command.
    Utilities -> Render -> Flythrough

    Draw a circle centered around the area to get the images from. You will
    have to put a small break in it, making it an arc, to get the cameras to
    space around it properly.
    In the dialog box set the Target Point to Fixed. Set other the other
    options as you like.
    Select Tools->Define Path and select both ends of the arc and the center
    for the target point.
    Select Tools->Record. In the dialog box that opens set the Format to
    JPEG (JFIF). This format will create a separate JPG file for each frame
    of the flythrough. In the filename field enter a filename with a
    numerical suffix with the number of digits you will need.
    i.e. images001.jpg
    This will go up to images999.jpg without the sequence getting out of
    order. The next filename would be images1000.jpg. By out of order I mean
    in programs like explorer which use ascii sequencing for listing files.

    HTH
    Dan
     
    Daniel MacNeil, Feb 2, 2007
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.