Please help a python newbie with his remote script
Posted: Mon Feb 21, 2011 10:56 pm
Hi,
I had an idea for a remote script that uses a module called
SendKeys or SendKeyCtypes. I got this module working in the
normal Python interpreter, but Live crashes as soon as I
load my script -> Runtime Error.
I found out that Live crashes every time the script tries
to import an .pyd file (_sendkeys.pyd or _ctypes.pyd). Is
there something I'm doing wrong or does Live not allow this ?
Is there another possibility to do
from ctypes import windll
?
In fact I'm nearly trying all this blind as I know very little
about Python. Even my starting point, __init__.py and a mini-script
that should run but do nothing throws errors in the log file:
44807 ms. RemoteScriptError: AttributeError
44807 ms. RemoteScriptError: :
44807 ms. RemoteScriptError: erster instance has no attribute 'refresh_state'
44807 ms. RemoteScriptError:
44807 ms. RemoteScriptError: AttributeError
44808 ms. RemoteScriptError: :
44808 ms. RemoteScriptError: erster instance has no attribute 'connect_script_instances'
44808 ms. RemoteScriptError:
44815 ms. RemoteScriptError: AttributeError
44816 ms. RemoteScriptError: :
44816 ms. RemoteScriptError: erster instance has no attribute 'can_lock_to_devices'
44816 ms. RemoteScriptError:
44871 ms. RemoteScriptError: AttributeError
44871 ms. RemoteScriptError: :
44872 ms. RemoteScriptError: erster instance has no attribute 'build_midi_map'
44872 ms. RemoteScriptError:
44887 ms. RemoteScriptError: AttributeError
44887 ms. RemoteScriptError: :
44888 ms. RemoteScriptError: erster instance has no attribute 'suggest_input_port'
44888 ms. RemoteScriptError:
44888 ms. RemoteScriptError: AttributeError
44889 ms. RemoteScriptError: :
44889 ms. RemoteScriptError: erster instance has no attribute 'suggest_output_port'
44889 ms. RemoteScriptError:
44998 ms. RemoteScriptError: AttributeError
44999 ms. RemoteScriptError: :
44999 ms. RemoteScriptError: erster instance has no attribute 'update_display'
Could somebody please provide me with an working script that does nothing or
simply mutes track 1 or something so I know it's working ?
Thanks.
I had an idea for a remote script that uses a module called
SendKeys or SendKeyCtypes. I got this module working in the
normal Python interpreter, but Live crashes as soon as I
load my script -> Runtime Error.
I found out that Live crashes every time the script tries
to import an .pyd file (_sendkeys.pyd or _ctypes.pyd). Is
there something I'm doing wrong or does Live not allow this ?
Is there another possibility to do
from ctypes import windll
?
In fact I'm nearly trying all this blind as I know very little
about Python. Even my starting point, __init__.py and a mini-script
that should run but do nothing throws errors in the log file:
44807 ms. RemoteScriptError: AttributeError
44807 ms. RemoteScriptError: :
44807 ms. RemoteScriptError: erster instance has no attribute 'refresh_state'
44807 ms. RemoteScriptError:
44807 ms. RemoteScriptError: AttributeError
44808 ms. RemoteScriptError: :
44808 ms. RemoteScriptError: erster instance has no attribute 'connect_script_instances'
44808 ms. RemoteScriptError:
44815 ms. RemoteScriptError: AttributeError
44816 ms. RemoteScriptError: :
44816 ms. RemoteScriptError: erster instance has no attribute 'can_lock_to_devices'
44816 ms. RemoteScriptError:
44871 ms. RemoteScriptError: AttributeError
44871 ms. RemoteScriptError: :
44872 ms. RemoteScriptError: erster instance has no attribute 'build_midi_map'
44872 ms. RemoteScriptError:
44887 ms. RemoteScriptError: AttributeError
44887 ms. RemoteScriptError: :
44888 ms. RemoteScriptError: erster instance has no attribute 'suggest_input_port'
44888 ms. RemoteScriptError:
44888 ms. RemoteScriptError: AttributeError
44889 ms. RemoteScriptError: :
44889 ms. RemoteScriptError: erster instance has no attribute 'suggest_output_port'
44889 ms. RemoteScriptError:
44998 ms. RemoteScriptError: AttributeError
44999 ms. RemoteScriptError: :
44999 ms. RemoteScriptError: erster instance has no attribute 'update_display'
Could somebody please provide me with an working script that does nothing or
simply mutes track 1 or something so I know it's working ?
Thanks.