Is it possible to create sub-folders or, somehow, organize script plugins, so that not all of them appear in the same ScriptPlugins folder?
Announcement
Collapse
No announcement yet.
Subfolders in ScriptPlugins
Collapse
X
-
The easiest part is merge a parentcontainer where the script is a child. Then save that geom to any folder.
-
You can save your script as a VSL into this folder :
%ProgramData%\vizrt\VizEngine\ScriptPlugins\
And in your script, you can use the RegisterPluginFolder.
You can check the documentation if you click here.
The name will be the script folder it will use.
Code:Sub OnInitPlugin() RegisterPlugin("PluginName") RegisterPluginFolder("FolderName") RegisterPluginVersion(1, 0, 0) end Sub
Last edited by pedrosugasti; 05-30-2022, 05:11 PM.
Comment
-
Originally Posted by pedrosugasti View PostYou can save your script as a VSL into this folder :
%ProgramData%\vizrt\VizEngine\ScriptPlugins\
And in your script, you can use the RegisterPluginFolder.
You can check the documentation if you click here.
The name will be the script folder it will use.
Code:Sub OnInitPlugin() RegisterPlugin("PluginName") RegisterPluginFolder("FolderName") RegisterPluginVersion(1, 0, 0) end Sub
I tried doing it, but when I change the name of the folder, nothing appears.
Where should the plugin script appear?
Where should the folder appear?
Comment
-
Still can't place my ScriptPlugins in any other folder than "ScriptPlugins".
I mean, in Viz we have subfolders inside the Container Plugins. For example, Arrange, Container, ContainerFx, Control, Data, Default, Feed, Global, etc...
I would like that an additional folder named, for example, "My_Plugs" would appear among these, and my plugins would appear inside them.
Is it possible?
Comment
-
What do you mean?
you can export Viz Script as a Viz plugin. You can either drag and drop the script to the plugins or you can also save it as a VSL plugin.
by default, it goes to the Script Plugin Folder. But, you can define another folder in the script, if you wish to do so...this has been already answered.
what are you trying to do exactly?
Pedro
Comment
-
Originally Posted by pedrosugasti View PostWhat do you mean?
you can export Viz Script as a Viz plugin. You can either drag and drop the script to the plugins or you can also save it as a VSL plugin.
by default, it goes to the Script Plugin Folder. But, you can define another folder in the script, if you wish to do so...this has been already answered.
what are you trying to do exactly?
Pedro
What I was trying to do was to have, inside Viz, additional folders inside the Categories list on the Plugins tab.
For example, we have Categories like "Arranje", "Data", "Dynamics", Lineup", or "ScriptPlugins".
I would like to know if I could create another Categorie, like "NewImage" or "MyUtilities", and my script plugins would appear there.
Comment
Comment