custom Plugin / shot path
Quote from maelfr on 30. October 2021, 15:00hello, I want to execute some code when prism creates a shot or an asset (like adding custom folders and some default files).
when I look at the definitions in Prism_PluginEmpty_Functions.py like the follwing:
def onShotCreated(self, origin, sequenceName, shotName)
I don't see a variable giving the shot path, whereas it seems to exist for asset creation:
def onAssetCreated(self, origin, assetName, assetPath, assetDialog=None)
is it possible to add it, or is there another way to get this path ?
(sorry if this has been asked before, couldn't find the answer in previous posts)
thanks !
hello, I want to execute some code when prism creates a shot or an asset (like adding custom folders and some default files).
when I look at the definitions in Prism_PluginEmpty_Functions.py like the follwing:
def onShotCreated(self, origin, sequenceName, shotName)
I don't see a variable giving the shot path, whereas it seems to exist for asset creation:
def onAssetCreated(self, origin, assetName, assetPath, assetDialog=None)
is it possible to add it, or is there another way to get this path ?
(sorry if this has been asked before, couldn't find the answer in previous posts)
thanks !
Quote from RichardF on 3. November 2021, 10:32In the onShotCreated function you can use this to get the shot path:
shotPath = self.core.getEntityPath(sequence=sequenceName, shot=shotName)
The project path is accessable like this:
projectPath = self.core.projectPath
In the onShotCreated function you can use this to get the shot path:
shotPath = self.core.getEntityPath(sequence=sequenceName, shot=shotName)
The project path is accessable like this:
projectPath = self.core.projectPath
Quote from maelfr on 4. November 2021, 13:32Hi Richard,
the plugin creation and execution went well, however I have this warning when opening Houdini:
WARNING:PrismUtils.PluginManager:skipped loading plugin customFolders - plugin has no init script
fyi our Prism folder is on a central location on the network (no local install)
Hi Richard,
the plugin creation and execution went well, however I have this warning when opening Houdini:
WARNING:PrismUtils.PluginManager:skipped loading plugin customFolders - plugin has no init script
fyi our Prism folder is on a central location on the network (no local install)
Quote from RichardF on 9. November 2021, 13:35Is "customFolders" the plugin you just created? In your preferences under you have this file %userprofile/Documents/Prism/PluginPaths.yml which you can open in a text editor. It contains the path to the plugin, which you created. In the pluginfolder you should have this file: \Scripts\Prism_customFolders_init.py. If it's not there then you would get the warning, which you mentioned.
Is "customFolders" the plugin you just created? In your preferences under you have this file %userprofile/Documents/Prism/PluginPaths.yml which you can open in a text editor. It contains the path to the plugin, which you created. In the pluginfolder you should have this file: \Scripts\Prism_customFolders_init.py. If it's not there then you would get the warning, which you mentioned.
Quote from autosaurus on 29. November 2022, 20:49Quote from maelfr on 4. November 2021, 13:32Hi Richard,
the plugin creation and execution went well, however I have this warning when opening Houdini:
WARNING:PrismUtils.PluginManager:skipped loading plugin customFolders - plugin has no init script
fyi our Prism folder is on a central location on the network (no local install)
Hi Maelfr.
Can i ask how you got prism to work on several computers by only having it installed on a server? That would be really interesting to know how to do:)
Quote from maelfr on 4. November 2021, 13:32Hi Richard,
the plugin creation and execution went well, however I have this warning when opening Houdini:
WARNING:PrismUtils.PluginManager:skipped loading plugin customFolders - plugin has no init script
fyi our Prism folder is on a central location on the network (no local install)
Hi Maelfr.
Can i ask how you got prism to work on several computers by only having it installed on a server? That would be really interesting to know how to do:)