I have a Google apps script that creates a new tab, which is executed through a shape that I added; more specifically a bevel. Now I would like for that same macro to create a new bevel shape on that new tab and assign it a new script.
How do I create a shape via GAS, and then assign a new script to it?
https://developers.google.com/apps-script/reference/spreadsheet/sheet
There are functions for inserting images. However there is no way to attach a script to them except for manually.
There are also no functions for getting, deleting, or otherwise manipulating an image once it is [art of the sheet. This prevents copying the an existing image. You would need to source your image from a URL or by providing a blob (sort of like file contents) probably pulled from a file in drive.
You may want to consider using a custom menu:
https://developers.google.com/apps-script/reference/spreadsheet/spreadsheet-app#getUi()
Related
So I've been working on this simple program to look up specs for drawings. One of the specs is a thumbnail image of the drawing. I didn't want to try managing what could be 1000's of images (that could be changed at anytime) in the database so I created a true/false field instead. If true for that record, then the corresponding thumbnail is displayed in a picture box.
It works beautifully.... if I type the entire path in the code. But what if I give the program to a friend? So I've been trying to find a way that the program would find the images to no avail. I've been searching for answers all day and am finally at this point.... asking for help.
If CBool(db.getField("PDF")) = True Then
'pbxPDFThumb.ImageLocation = ("C:\Users\Reed Havoc\Desktop\RCM Database\RCM DataBase 2015 8g\RCM Plans Tool\RCM Plans Tool\Thumbnails\PDFs\" & db.getField("Plan_Num") & "pdf.jpg")
pbxPDFThumb.ImageLocation = ("\Thumbnails\PDFs\" & db.getField("Plan_Num") & "pdf.jpg")
End If
The first line is the entire path commented out to try the second, foreshortened path.
I've been adding my image thumbnail directory to the project in all the different directories that VS establishes on start-up but none seems to be a default so that my added image directory will be recognized.
Not so clear so I'll have 2 answers.
If drawing are not going to be added but you only use the ones you already have, simply store all of the pictures in the project's resource file, which is accessible through code and builds into the EXE
If the user adds drawings themselves there are two options. There's the more user friendly method: Save the files in a Local appdata folder for the application.
Or, less user friendly and ultimately more work for you. when the application starts, ask the user to identify a directory that does / will contain images.
With Photoshop I have multiple web banners at different sizes that contain the same image. Is there a way to change the image on one psd file so that it will automatically change on all the other psd files?
I'm using Creative Cloud
Any help will be really appreciated
Thanks
Create the banner in the biggest size
Right click the layer and choose Convert to smart object
Create a new document with next banner measurements. Go back to the already created banner and use the move tool (v) and drag the layer/layers in to the new document.
If you now doubleclick your smart object (doesnt matter in which document) you will open a new document. If you make any changes there it will be changed in both banners.
You can choose more than one layer to become a smart object together. When you double click the smart object you will find all your layers separate but in the banner document it will only show as one file.
This is what the symbol on a smart layer looks like
One option is to use linked smart objects.
If you have photoshop CC you can follow this for instruction on how you'd do it.
(Sorry for the link only answer but it's a video and will make more sense then listing the steps)
if you use Photoshop CC 2014 or 2015 you can place images as linked files, same way as InDesign or HTML docs. Adobe gives now two choices Place Embeded or Place Linked.
Hello I have a OBJ file exported from 3d max. In the file I assigned parts of the model to groups. I can open my file in text editor I can see vertices and faces assigned to 20 groups.
However when I export to js (to rendered on a webpage using 3js) and look at my file I don't see my groups. Can I retain groups when I convert the file to js or does the json format doesn't support groups?
The overall aim is to be be able to replace parts of the geometry with a click or button. My plan was to write a script to replace groups on runtime but since I am not able to retain group names when exported to .js I am wondering if it's possible to do with 3js?
The main idea: a user creates a powerpoint file with 1 slide, and this slide is inserted into a slideshow which is already looping.
A first idea I had was to convert the .ppt file into an image (e.g. using http://www.artofsolving.com/opensource/jodconverter/ or a .NET API), and then create a flash application which scans a directory for images(/converted slides) to show.
But this seems a bit like a complex solution, any suggestions?
You can achieve this using the insert object feature in PowerPoint.
Choose Insert from file
Select the powerpoint file
Check Link Checkbox
And its done. Any changes in the linked file are reflected in the already looping show. Let me know if you don't get it.
Basically what I want to do is have one gui that is just a title and a push button that calls uigetfile(), and once the user selects an image, the gui closes, and opens a new gui that contains the image, functions applied to the image, and information about the image. I have made all the code for everything, I just can't figure out how to use setappdata and getappdata so that the new gui opens with everything I want.
Mathworks website contains detailed information for most of matlabs functions.