Quote:
Originally Posted by hopi
|
I'm trying to guess here what could have caused this error in Playlist Scripts. One suspicious part of code is in config var reading functions.
Could someone check if this code is correct:
Code:
def getEnvAttach():
offset = RPR_projectconfig_var_getoffs("envattach", 0)[0]
var=RPR_projectconfig_var_addr(RPR_EnumProjects(-1, "", 0), offset)
p=rpr_packp('void*',var)
pp=cast(p, POINTER(c_int))
return pp.contents.value
Is it OK to use rpr_packp outside reaper_python.py?
Is the cast done right?
jnif