In the Maya publish process I have one item with 2 plugins acting on it. Each plugin needs to save a unique file to a unique path, (they both have their own template paths). Everything works, but the problem comes in during the Publish process, between the accept() and validate() methods. During accept() the path value in item.properties[“publish_template”] is correct. Once the process moves to validate() the same value for the same item is overwritten to the above plugin value.
To clarify, there are 2 plugins, the plugin that is called first by the publisher will override the dict value of the plugin that is called after it, during validate() .
I have checked to see if the same item is being passed into validate(), and it is correct.
Currently my solution to the problem is to just create another dictionary entry for the 2nd plugin, one that won’t be accessed by the first. But I did want to know why after processing the correct value in accept(), would it then be overwritten in validate()? It seems to be something that is happening on the publisher’s side, I just haven’t nailed down what yet.