First time I did something like this, turned out pretty simple, the documentation on Perforce webpage is pretty good! Yay for that.
I haven’t tested it intensively but I’m crossing fingers all is working, I got some warnings when compiling but from my tests, at least in 3ds Max 2015 all is good. Both 3ds Max 2015 and Maya 2015 break binary compatibility with it’s predecessors so everything needs to be compiled with Visual C++ 11.0 Service Pack 3. Visual Studio 2012 Update 4.
As usual this is in my GitHub repo YCDIVFX MaxPlus Packages and you can find it under the Externals folder. I’ve also included a small example from the Perforce website in the Examples folder.
Copy P4.py and P4API.pyd to your site-packages foder and you’re done.
For 3ds Max users this means “C:Program FilesAutodesk3ds Max 2015pythonLibsite-packages”.
Maya users “C:Program FilesAutodeskMaya2015PythonLibsite-packages”
Let me know if you run into any issues!