The forum is active for archival purposes only.

Join our discord community for new topics.

论坛导航
论坛导航 - 你在这里:ForumPrism: GeneralPrism 2 State Manager code
您需要登录才能建立帖子与主题。

Prism 2 State Manager code

I would like to know how I can utilise the state manager code option. There is a simple preset but no documentation on this. Is the code in python? How does it vary depending on the application you are using it in?
I would like to run some simple checks to the model before creating a published model. Is this something I can do with this option?

Yes the Code State is for Python code.

If you are in Maya you can import the cmds module. If you are in Houdini you can import the hou module. That way you can access the api of each DCC.

Using the "pcore" variable you can access the Prism API.

Yes you can use this state to run some custom checks in your scene. The artists will be able to disable the state though. With a plugin or a hook you could add custom checks, which cannot be ignored so easily.

Very true. Thanks