I can't seem to add a new property to a RVFileSource node in Python. I'm doing the following:
file_source = rv.commands.addSourceVerbose([path])
prop = file_source + '.myprop'
print(prop)
rv.commands.newProperty(prop, rv.commands.StringType, 1)
When I run this I get the following output
sourceGroup000000_source.myprop
Exception: Exception thrown while calling commands.newProperty -- exception: "in commands.newProperty: malformed property name", program exception
I get the same thing if I try to build a mu command and eval that instead. I guess the clue's in the exception, but I can't see at first glance how the property name is different from others?
Cheers,
Anders