THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/03/2012 at 11:51, xxxxxxxx wrote:
I'd like to try out the functions in this class. But I can't figure out the proper way to construct it.
Example from the docs: x, y = win.Screen2Local()
That really doesn't help much. Since it doesn't say where "win" comes from. Or show how to instantiate the class. And the function doesn't even work substituting values for x&y.
This is my best guess where "win" comes from. But I can't figure out how to use any of the functions in it:
import c4d def main() : win = c4d.gui.EditorWindow win.Local2Screen(100,200) #Error: requires a c4d.gui.EditorWindow object
Appears to be wrong.
Can anybody offer some small example how the Local2Screen() function is supposed to be written?