Combine Proteopedia scenes with inline JSmol scripting: Difference between revisions
From Proteopedia
Jump to navigationJump to search
No edit summary |
m tag code better |
||
| Line 4: | Line 4: | ||
Then to load that scene from within any script follow these instructions:<br> | Then to load that scene from within any script follow these instructions:<br> | ||
Let’s assume that the green link to your scene is <nowiki><scene name='41/413146/start_view/1'>Starting view</scene></nowiki>. You need to add <nowiki>load /wiki/scripts/</nowiki> before the name and <code><nowiki>.spt</nowiki></code> after it, as follows: | Let’s assume that the green link to your scene is <code><nowiki><scene name='41/413146/start_view/1'>Starting view</scene></nowiki></code>. You need to add <nowiki>load /wiki/scripts/</nowiki> before the name and <code><nowiki>.spt</nowiki></code> after it, as follows: | ||