Added Blender.Get('rt') so that the pythoner can access the value

of the rt button for setting debugging levels.
This commit is contained in:
Chris Want
2006-05-17 16:42:04 +00:00
parent 18b622ca6b
commit a0fdbf1c18
2 changed files with 3 additions and 0 deletions

View File

@@ -274,6 +274,8 @@ static PyObject *Blender_Get( PyObject * self, PyObject * args )
ret = PyInt_FromLong( G.scene->r.cfra );
else if( StringEqual( str, "curtime" ) )
ret = PyFloat_FromDouble( frame_to_float( G.scene->r.cfra ) );
else if( StringEqual( str, "rt" ) )
ret = PyInt_FromLong( frame_to_float( G.rt ) );
else if( StringEqual( str, "staframe" ) )
ret = PyInt_FromLong( G.scene->r.sfra );
else if( StringEqual( str, "endframe" ) )

View File

@@ -73,6 +73,7 @@ def Get (request):
- 'curtime' : the current animation time.
- 'staframe': the start frame of the animation.
- 'endframe': the end frame of the animation.
- 'rt': the value of the 'rt' button for general debugging
- 'filename': the name of the last file read or written.
- 'homedir': Blender's home dir.
- 'datadir' : the path to the dir where scripts should store and