How to place nuke and maya camera publish scripts in config\hooks location

I need to publish camera from nuke like how cameras are published in maya. So I look at how maya camera publish works. reference file here

I have made a working workflow for maya and am about to add for nuke but realize it may not work. let me explain.

custom changes for maya are as below. I tried adding nuke collector below but having same name is not possible to I named it to nuke_collector. Question is how best to house both DCC scripts to run the show smoothly

 config   
   |
   |_  hooks
     |
     |_ tk-multi-publish2
	   |
	   |_ basic
		|
		|_ [ collector.py, publish_file.py, publish_maya_camera.py, publish_session_geometry.py ]

and tk-multi-publish2.yml

maya

settings.tk-multi-publish2.maya.shot_step:
collector: “{self}/collector.py:{engine}/tk-multi-publish2/basic/collector.py:{config}/tk-multi-publish2/basic/collector.py”
collector_settings:
Work Template: maya_shot_work

nuke

settings.tk-multi-publish2.nuke.shot_step:
collector: “{self}/collector.py:{engine}/tk-multi-publish2/basic/collector.py:{config}/tk-multi-publish2/basic/nuke_collector.py”
collector_settings:
Work Template: nuke_shot_work

It doesnt really matter, for readability I would replace the word basic with the name of the dcc for example.

1 Like

great. Just in case I thought I was going off track. Thank you a million, Ricardo :slight_smile:

1 Like

Yeah thats allright!

it’s a little down to personal preference and one method works better than another if the config get bigger.

For example:

{config_root}/hooks/tk-multi-publish2/tk-nuke/collector.py
{config_root}/hooks/tk-multi-publish2/tk-nuke/my_publish_plugin.py

{config_root}/hooks/tk-multi-publish2/tk-maya/collector.py
{config_root}/hooks/tk-multi-publish2/tk-maya/my_publish_plugin.py

But this also works:

{config_root}/hooks/tk-nuke/tk-multi-publish2/collector.py
{config_root}/hooks/tk-nuke/tk-multi-publish2/my_publish_plugin.py

{config_root}/hooks/tk-maya/tk-multi-publish2/collector.py
{config_root}/hooks/tk-maya/tk-multi-publish2/my_publish_plugin.py