well, the title is quite self explanatory. I'm trying to extract, via a script in java, the information of a transformation I perform manually on a layer (Ctrl+T / Distort ) in Photoshop (in order to later apply it on other layers). Any idea on how to do that? or if that's doable at all.
Thanks for your help!
I think you're looking for an action that can be repeated on a layer. This can be accomplished via Actions. You just need to record that custom transformation and then apply that action a different layer. This will apply the same transformation again. Have a look at https://helpx.adobe.com/photoshop/using/creating-actions.html
Related
I have some doubts. I'm doing a BI for my company, and I needed to develop a data converter in ETL because the database to which it's connected (PostgreSQL) is bringing me some negative values within the time CSV. It doesn't make much sense to bring from the database (to which we don't have many accesses) negative data like this:
The solution I found so that I don't need to rely exclusively on dealing directly with the database would be to perform a conversion within the cloudconnect. I verified in my researches that the one that most contemplates would be the normalizer, but there are not many explanations available. Could you give me a hand? because I couldn't parameterize how I could convert this data from 00:00:-50 to 00:00:50 with the normalizer.
It might help you to review our CC documentation: https://help.gooddata.com/cloudconnect/manual/normalizer.html
However, I am not sure if normalizer would be able to process timestamps.
Normalizer is basically a generic transform component with a normalization template. You might as well use reformat component that is more universal.
However, what you are trying to do would require some very custom transform script, written in CTL (CloudConnect transformation language) or java.
You can find some templates and examples in the documentation: https://help.gooddata.com/cloudconnect/manual/ctl-templates-for-transformers.html
I would like to programatically delete image placeholders which are full (PlaceholderPicture objects in the python-pptx API)
and replace them with empty ones (PicturePlaceholder), the goal being to "refresh" pictures instead of always having to fill out an empty presentation.
I think I know how to delete a shape, but creating a new PicturePlaceholder proves harder than expected.
When I try to create one I am asked to provide a sp and a parent and I cannot find in the documentation what these parameters refer to.
Does my approach make sense, and if so is it possible to create new placeholders programmatically? Could anyone explain what are the parameters I should pass to the constructor?
Thanks in advance.
python-pptx has no API support for this, which means you would need to directly manipulate the underlying XML of the slide to accomplish it (and be outside the python-pptx "safety net").
sp is the shape element (generally an <p:sp> element, hence the name) and parent would be a reference to the slide.
As a general approach, I would create an empty placeholder and compare its XML to that of a "filled" placeholder which is the same in every respect. Then the job is to make one into the other.
Note that a picture placeholder has a relationship to the "image part" (e.g. PNG file) stored elsewhere in the PPTX package (.pptx file). This will need to be dealt with and not left dangling.
Another possibility is just to swap the image and leave everything else in place, which on paper at least would be less disruptive.
Because none of these options has API support, pursuing them involves taking on responsibility for a lot of details that python-pptx takes care of for you and learning a fair amount about the internals. If that sounds like something you'd rather avoid then you'll want to find another way to accomplish the broader outcome you have in mind.
You could use ft.dfs to get back feature definitions as input to ft.calculate_feature_matrix or you could just use ft.dfs to compute the feature matrix. Is there a recommended way of using ft.dfs and ft.calculate_feature_matrix for best practice?
If you're in a situation where you might use either, the answer is to use ft.dfs to create both features and a feature matrix. If you're starting with a blank slate, you'll want to be able to examine and use a feature matrix for data analysis and feature selection. For that purpose, you're better off doing both at once with ft.dfs.
There are times when calculate_feature_matrix is the tool to use as well, though you'll often be able to tell if you're in that situation. The main cases are:
You've loaded in features that were previously saved
You want to rebuild the same features on new data
We have quite a complex Visio diagram with custom styled shapes and relations between them. Unfortunately the data of the shapes changes very often. So we have to edit the diagram manually. Furthermore we're searching for a way to automate this step. We don't want to edit the styles, only the data. I read on MSDN that the model behind Visio is stored in XML and there's also a VBA reference, which looks good.
My concern is that our approach is to time consuming and we end up with the old approach of doing it manually. Has someone done something similar and can give me a tip?
The Apache (N)Poi Library provides features I was looking for.
http://poi.apache.org/diagram/
I am looking for a command line tool which can generate function flow diagrams from some textual description (any sort of markup language would do).
The idea is to document the data connections between some components. The resulting diagrams shall resemble the following. This is mostly for own internal doc. so it doesn't really need to generate fancy diagrams. Blocks with annotation, connections with annotation and maybe some notes is definitely sufficient.
http://www.automation.com/images/article/mathworks/MathWorks_Simulink_robot_arm_simulation_model.png
http://www.randservice.com/images/screen2.jpg
Thanks a lot in advance,
Paul
Check out: GraphViz -- It generates graphs out of a list of vertices and edge definitions
Also, check out IPE, a vector drawing program that can create exactly what you want, but it will be a manual process.