Documentation on some key RV python functions

Hi everyone!

I would like to know how some key python functions behave, what their input parameters do and what their return values are.

from rv import commands

commands.setIntProperty(node + '.' + prop, [value], True)
commands.getIntProperty(node + '.' + prop, 0, 1)[0]
commands.setFloatProperty(node + '.' + prop, [value], True)
commands.getFloatProperty(node + '.' + prop, 0, 1)[0]
commands.setStringProperty(node + '.' + prop, [value], True)
commands.getStringProperty(node + '.' + prop, 0, 1)[0]

Here are my questions:

  1. How are the 2 additional parameters in the “getter” functions defined? What do they do? What is their type?
  2. Do the “getter” functions always return lists?
  3. Do the values always have to be given as a list in the “setter” functions?
  4. What does the 3rd parameter mean in the “setter” functions?
  5. Are there any additional parameters to these functions?
  6. Are there any resources online to learn more about the RV python libraries?

Thanks in advance!

Cheers,
Fabian

1 Like