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:
@@ -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" ) )
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user