Announcement

Collapse
No announcement yet.

Subfolders in ScriptPlugins

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Subfolders in ScriptPlugins

    Is it possible to create sub-folders or, somehow, organize script plugins, so that not all of them appear in the same ScriptPlugins folder?

  • #2
    The easiest part is merge a parentcontainer where the script is a child. Then save that geom to any folder.

    Comment


    • #3
      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
      pedrosugasti
      Active Forum user
      Last edited by pedrosugasti; 05-30-2022, 05:11 PM.

      Comment


      • #4
        Originally Posted by pedrosugasti View Post
        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

        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


        • #5
          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


          • #6
            So, what does the RegisterPluginFolder command does?
            No matter what I place there, the only thing that happens is that the plugin disappears.

            Comment


            • #7
              Still no answer about what the RegisterPluginFolder command does?
              If the command does nothing, why does it exists?

              Comment


              • #8
                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


                • #9
                  Originally Posted by pedrosugasti View Post
                  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
                  Hello, 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

                  Working...
                  X