Convert your design - or any webpage - Into ignition perspective.
Here is a tiny guide on how to use the script:
- Open your browser's Developer Tools (F12 or Ctrl+Shift+I / Cmd+Option+I).
- Go to the Console tab.
- Type
allow pastingand press Enter if prompted by the browser. - Paste the entire script content (from
autoPerspective.jsor the latest version provided) into the console and press Enter. - Use the Inspector/Elements tab to select the HTML element you want to convert.
- Go back to the Console tab.
- Type
generateJsonFromSelected()and press Enter. - The script will output the generated JSON object, which you can then copy.
- Open DevTools: Press
F12orCtrl+Shift+I(Windows/Linux) orCmd+Option+I(Mac) in your browser. - Navigate to Console: Click on the "Console" tab in the DevTools window.
- Allow Pasting (if needed):
- If you see a message like "Paste is disabled for security reasons", type
allow pastinginto the console input line and pressEnter.
- If you see a message like "Paste is disabled for security reasons", type
- Paste the Script:
- Copy the entire content of the script (e.g., from
autoPerspective.js). (Open it on a notepad, the copy all the file) - Paste it into the Console input area and press
Enter. You should see a confirmation message like "Enhanced JSON DOM Generator loaded!".
- Copy the entire content of the script (e.g., from
- Select an Element:
- Generate JSON:
- Switch back to the "Console" tab.
- Type
generateJsonFromSelected()into the console input line and pressEnter.
- Copy the Output:
- Paste the Output:
Enjoy !


