[Ipe-discuss] Ipelet: setting the URL of a group

Otfried Cheong ipe at otfried.org
Sat Feb 5 11:47:18 CET 2022


On Sat, Feb 5, 2022, at 10:30, Bläsius, Thomas (ITI) via Ipe-discuss wrote:
> Is it possible to set the URL of a group with an ipelet?
>
> I thought it should work (similar to other properties) somewhat like this:
>
>> local group = ipe.Group(elements)
>> group:set("url", "http://...")
>
> But this gives me the error "invalid option 'url'". Given that the URL
> does not appear in the list of properties in the manual [1], I assume it
> is not possible to set the URL. Or am I missing something?

The Ipe user interface itself is written in Lua, so anything you can get or set through the UI also has a Lua call - but the documentation is unfortunately not perfect.   I'll add this one to the manual.

The right call is:

group.setText("http://...")

Cheers,
  Otfried


More information about the Ipe-discuss mailing list