On 30/04/2017 at 09:13, xxxxxxxx wrote:
I am trying to figure out the best way to link all parameters of one object to another.
More fundamentally, I would like to understand the syntax behind object parameters, more specifically, the base objects, like the deformers, hypernurbs etc.
For any object, to address a parameter, you use square brackets.
To me, this suggests the object is a list/array.
Yet if I try to loop through it like this:
link = op[c4d.ID_USERDATA,1] # this is a link to another object def main() : for a in link: print a
I get TypeError: 'c4d.BaseObject' object is not iterable
so whats the deal with this useage of square brackets?
And what is a good approach to get/set all object parameters?
Maybe when I say "all" is a bit too vague, I assume they are categorised based on the tabs you see in the attribute manager, I don't know how/where this info is stored / accessed..