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:
- How are the 2 additional parameters in the “getter” functions defined? What do they do? What is their type?
- Do the “getter” functions always return lists?
- Do the values always have to be given as a list in the “setter” functions?
- What does the 3rd parameter mean in the “setter” functions?
- Are there any additional parameters to these functions?
- Are there any resources online to learn more about the RV python libraries?
Thanks in advance!
Cheers,
Fabian