Skip to main content
Filter by
Sorted by
Tagged with
Advice
2 votes
3 replies
31 views

SaveImage() does not seem to update 'File location' under: Image Info/Image/Info Is there a command for adding the file location? I could close and re-open the file, but that seems burdensome ...
E Voelkl's user avatar
1 vote
1 answer
61 views

In previous thread "How to use SliceN to convert 2D image to 3D tiles" @BmyGuest has demonstrated two efficient ways other than the direct expressions approach. Here I would like to extend ...
KEVIVI's user avatar
  • 186
2 votes
1 answer
53 views

I’m working with Gatan DigitalMicrograph (DM-script) and trying to programmatically access the label text shown on a scale bar, such as "200 nm" or "10 μm". I assumed this ...
Samuel Hao's user avatar
3 votes
1 answer
54 views

I'm developing a script in Gatan DigitalMicrograph (DM-Script) and need to determine whether a specific image is currently being displayed in the software UI. So far, I've tried several approaches, ...
ChenZX's user avatar
  • 291
1 vote
1 answer
53 views

I'm working with dm-script to process a raw profile. I first calculate its first derivative to detect edges, and then let users select a region between these edges in the derivative plot. However, I'd ...
Samuel Hao's user avatar
2 votes
1 answer
68 views

In Gatan software, I found that the Band Pass Filter in Process Image can only be applied to a single 2D image or a specific frame of a 3D image. My dataset is a 3D stack (multiple frames), and I need ...
yale chen's user avatar
3 votes
1 answer
44 views

Apparently the "Window" menu cannot be accessed directly by scripts. The following code return a null script object: Object objMB = GetMenuBar(); Object objWindowMenu = objMB....
KEVIVI's user avatar
  • 186
1 vote
1 answer
66 views

I'd like to obtain line profiles of RGB components of an RGB image. I think the former version of GMS can show RGB line profiles from line profile tool. (I'm sorry if I misunderstand.) However, when I ...
arksakura's user avatar
3 votes
1 answer
50 views

With the menu File/Open I can pick a directory and a file within. Is there a scripting call that returns the path and file name? boolean OpenFile(string directory, string filename)
E Voelkl's user avatar
2 votes
2 answers
79 views

Is there an efficient and elegant way to managing tag paths used by different scripts? For example, I have one script to write certain metadata in to an image: // common tag group paths string ...
KEVIVI's user avatar
  • 186
1 vote
1 answer
148 views

I'm working with Digital Micrograph (DM) and have an MRC file that contains 10 distinct pieces. When loaded in DM, I can navigate through these pieces using the left and right arrow keys. I'm looking ...
ChenZX's user avatar
  • 291
2 votes
2 answers
66 views

I run the typical example of DLGCreateDialog in GMS 3.2.xx and GMS 3.5.xx TagGroup DLG, DLGItems DLG = DLGCreateDialog( "Please enter strings", DLGItems ) TagGroup opt1tg = DLGCreateCheckBox(...
Yuan Yao's user avatar
1 vote
1 answer
45 views

I'm working with DM script on an FFT image where I manually change the size of a circular region. However, when I adjust the size, the circle either shifts away from the FFT image's center or ...
ChenZX's user avatar
  • 291
3 votes
1 answer
46 views

Does the Digital Micrograph scripting language have any built-in support (not including Python) for regular expressions? Looking through the built-in documentation I do not see any reference to regex ...
Abstracted's user avatar
1 vote
2 answers
78 views

I'm trying to add a slider widget to a Digital Micrograph (DM) script interface, and I need the slider's value to be an integer. Unfortunately, I haven't found any specific documentation in the DM ...
ChenZX's user avatar
  • 291
0 votes
1 answer
43 views

I’m working with a profile that displays the ROI length of an image. I need the profile to reflect the updated ROI length immediately after I change the scale of the image. However, when I run the ...
ChenZX's user avatar
  • 291
0 votes
1 answer
50 views

I'm working in dm-script and need to measure the execution time of various functions. Currently, I use the following pattern to measure time: Number time1, time2 time1 = GetCurrentTime() // run some ...
ChenZX's user avatar
  • 291
0 votes
1 answer
54 views

I'm working with profile images and need to extract the measured length from them. Initially, I assumed that the measurement might be a component, but when I used TagGroupCountTags, it indicated that ...
ChenZX's user avatar
  • 291
0 votes
1 answer
85 views

I'm working with an image in dm-script where using a line with a length label creates both a line and a text component (displaying the length) on the image. I want to remove both the line annotations ...
ChenZX's user avatar
  • 291
0 votes
2 answers
38 views

I'm trying to understand the design rationale behind the following dm-script function: TagGroup TagGroupAddLabeledTagGroup(TagGroup tgt_tag_group, String label, TagGroup src_tag_group) The function's ...
ChenZX's user avatar
  • 291
1 vote
1 answer
66 views

What's the difference for the two methods of UI initiator? I’m building a UI with a sub-dialog and need it to appear only when a user clicks a button. However, I’m encountering different behaviors ...
ChenZX's user avatar
  • 291
0 votes
1 answer
61 views

I'm working with a UI library where I create containers such as tabs, boxes, and groups. These functions take a parameter called container_items (or items) as one of their arguments: DLGCreateTab( ...
ChenZX's user avatar
  • 291
0 votes
1 answer
51 views

I'm working with a TagGroup file (with a .gtg extension) that contains multiple layers of information. For example, my file looks like this: top_layer:mid_layer1,true top_layer:mid_layer2,'abc' ...
ChenZX's user avatar
  • 291
0 votes
1 answer
57 views

I'd like to use LaunchExternalProcess to trigger opening html file in GMS. I have tested the command in cmd, and it works. The cmd command is start X:\Manual\index.html But if I use the code below in ...
ChenZX's user avatar
  • 291
0 votes
1 answer
49 views

I'm trying to enforce a value threshold on a realfield input widget in DM-script such that valid values are between 0 and 0.05. When I input 0.06 and click outside the widget, it warns that the value ...
ChenZX's user avatar
  • 291

1
2 3 4 5
8