Continuing the discussion from Variable amount of properties determined at runtime:
Hello!
As @nezumi.blend stated in an answer of the above linked previous topic, it is possible to put e.g. shader nodes directly into the prop() function without using an additional property:
bsdf = mat.node_tree.nodes.get("Principled BSDF")
row = col.row(align=True)
row.prop(bsdf.inputs['Base Color'], "default_value", text=mat.name)
I’m wondering if it is also possible to put e.g. a position vector of an object into the prop() function.
But if I do something like this
row.prop(bpy.data.objects["Cube"].location)
I get an TypeError: UILayout.prop(): error with argument 1, "data" - Function.data expected a AnyType type, not Vector
error.
Is this possible without doing the “workaround” of using a VectorProperty
with an update function that updates the location of my object?