switchTemplatePlugin.zip (5.3 KB)
An update on the plugin,
I have created a switch template plugin, which will be useful to create a control switch layer.
(Note: I will soon merge these plugins into one main plugin ‘The Controller Plugin’)
It is not easy as the joystick plugin to use, but definitely will make your work easier
To begin put all your images/layers in one group, and then rename the layer in format as switchTemplate_anyName. Example (switchTemplate_face, switchTemplate_demotesting).
And then run the plugin.
After you run the plugin, controllers would be created for each group (which have a name in format switchTemplate_anyName) and they will also have exported canvases. (Exported Canvas names are random with id for now, in a later version they will use the name provided by the user)
In exported canvas, you can see the same layers as were in the group, and the exported canvas would be cropped to be a square shape.
Now you can go to exported canvas and move the layers according to you where you want them to be with respect to the controller.
And when you move the controller in the parent canvas or root canvas, it will be effective.
This is hard to understand by just reading. I will try to make a video to explain this process.
Till now you can understand by this demo file.
starterOut.sif (115.1 KB)
Open the file, and try moving the controller. The switch layers active item will change in response to the controller. So if you move the controller to the top area it will become white.
Now go to the exported canvas (switchTemplate7310) and you can see that the top position is represented by the white rectangle. Now try changing their position (move their origin), such that the white is at the bottom and blue is at the top.
Now if you go to the parent/root canvas (starterOut.sif) you can see that when the controller is in the top area the blue rectangle is shown. Hope this gives the basic understanding of how the plugin works.
Quick Steps:
- Create a group and name it in the format of switchTemplate_anyName (switchTemplate_demo)
- Run the plugin
- Go the exported canvas generated by the plugin, and move the layers to where you want them to appear with respect to the controller
- Move your controller and everything must be good.
Edit:
Here’s the video,