Old 08-19-2010, 11:38 AM   #1
Erriez
Human being with feelings
 
Join Date: Jun 2010
Location: The Netherlands
Posts: 157
Default NameError: RPR_ShowConsoleMsg("Position: %f\n" % RPR_GetCursorPosition())

Hi all,

I've a simple (minor) question. The following Python Reascript code works fine:
Code:
time = RPR_GetCursorPosition()
RPR_ShowConsoleMsg("Position: %f\n" % time)
I get an error with the following code in an empty .py script:
Code:
RPR_ShowConsoleMsg("Position: %f\n" % RPR_GetCursorPosition())
Quote:
NameError: name 'RPR_GetPlayPosition' is not defined.
In my opinion it's valid Python code, but I don't understand this error. Any ideas?
Erriez is offline   Reply With Quote
Old 08-19-2010, 04:10 PM   #2
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 10,388
Default

ReaScript doesn't allow more than one API call per line, for arcane reasons.
schwa is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:01 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.