Callback script button with external script

   1201   2   0
User Avatar
Member
96 posts
Joined: Nov. 2017
Offline
There are so many tips on doing this with a python module in the type properties. But this is not a custom hda, but the camera node I altered I don't want to add a module to it. Caused a lot of problems with using the camera regularily. RS stuff missing e.g. Also I add all the buttons with a startup script and not manually.

So, how do I run a script which is called by the button which is in another position, e.g. the python script folder? Couldn't find anything on this subject in the docs, which are a bit obsessed with using the python module in the hda. : )

Cheers
Tom
User Avatar
Member
96 posts
Joined: Nov. 2017
Offline
P.S.: Need to pass the node name to the script.
User Avatar
Member
96 posts
Joined: Nov. 2017
Offline
import myModule; myModule.myScript(kwargs

seems to work.
  • Quick Links