I have this set up in Visual Studio: Display Driver, though when compiling I receive an error that I did not define a `main()` method, from which file in the Arnold SDK do I need to import in order to have this entry point defined?
Solved! Go to Solution.
Solved by maxtarpini. Go to Solution.
I've tried compiling both a dynamic and standard library - I have no errors now, but it doesn't appear that the display_driver_callback
node is being added to Arnold:
`arnold.AiNode("driver_display_callback")` fails with: ERROR | node "driver_display_callback" is not installed
Ok so a dll is good 🙂 btw don't forget to compile it in Release mode at some point with ProjectProperty -> C/C++ -> Optimization set to at least O2. Then before you can use it .. you need to let Arnold source your library with ie from kick cli .. -l "pathtomylib"
@Max Tarpini I got this:
C:\Users\tyler\source\repos\driver_display_callback\x64\Release>kickArnold 5.1.1.0 [e338d869] windows icc-17.0.2 oiio-1.7.17 osl-1.9.0 vdb-4.0.0 clm-1.0.3.513 rlm-12.2.2 2018/05/23 00:19:24kick: No arguments. Try kick --help for a command summary
I'm still getting this issue:
arnold.AiNode("driver_display_callback")
fails with: ERROR | node "driver_display_callback" is not installed
I do see this though:
loading plugins from C:\Users\tyler\source\repos\driver_display_callback\x64\Release\ driver_display_callback driver
Still not sure how I can use it with `arnold.AiNode("driver_display_callback")
` though.. hmm..
@Max Tarpini Alright I think I finally got it, I just dragged the .dll file into the
`Arnold-5.1.1.0-windows\plugins` folder, and finally it appears that it can find this display driver, now I have to try and call it's method, it appears this method does not exist, any idea how to get access to the node's method?
`cb = arnold.DriverDisplayCallbackMtd(_callback)`
`arnold.AiNodeSetPtr(driver, "callback", cb)`