With a JavaScript approach, you can do a lot with the XD's plugins. In this video, explore the main code for the plugin.
- [Instructor] Let's start working on the main function … that will generate our lorem ipsum text for us. … Again, always remember that in the scene graph, … we have access only to the items selected. … So if we select an item, we have only access to this … and its children through the selection library. … So let's work on this in code. … So the first thing we're going to do … is create a brand new function, … and I'm going to create it above the async function. … So if you don't want to get distracted by the async function, … you can simply use the minus, … and what I'm going to do is start … with creating a basic function … that I'm going to call generateText, … and for this function, I'm going to pass selection, … and the reason why I'm passing selection again, … it's because we're going to use selection … inside of that function inside of the async function. … So generateText is going to be a function … that will be used inside here. … So I need to pass selection here … and then have it available through that function …
Released
9/19/2019- Setting up a coding environment
- Installing required software
- Creating a user interface
- Adding functions to plugins
- Creation workflow vs. collaborative workflow
- Working with the scenegraph
- Using the Adobe I/O Console
- Using Adobe XD plugin helpers
- Updating plugin icons
Share this video
Embed this video
Video: Write the main generator function