static void set_value(iunknown_wrapper& Self, const boost::python::object& Value) { if(k3d::iwritable_property* const writable = Self.wrapped_ptr<k3d::iwritable_property>()) { writable->property_set_value(python_to_any(Value, Self.wrapped<k3d::iproperty>().property_type())); return; } throw std::runtime_error("property " + Self.wrapped<k3d::iproperty>().property_name() + " is a read-only property"); }
void configure_option(const std::string& optname, const object& val) { Common::Option& option = component().option(optname); option.change_value(python_to_any(val, option.type())); }