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

Bläsius, Thomas (ITI) thomas.blaesius at kit.edu
Sat Feb 5 12:36:33 CET 2022


That worked; thanks a lot!

Best regards,
Thomas

Otfried Cheong via Ipe-discuss <ipe-discuss at lists.science.uu.nl> writes:

> 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
> _______________________________________________
> Ipe-discuss mailing list
> Ipe-discuss at lists.science.uu.nl
> https://mailman.science.uu.nl/mailman/listinfo/ipe-discuss
-- 
Karlsruhe Institute of Technology (KIT)
Institute of Theoretical Informatics

T.T.-Prof. Dr. Thomas Bläsius

76131 Karlsruhe, Germany
+49 721 608 43919
thomas.blaesius at kit.edu
scale.iti.kit.edu

Registered office:
Kaiserstraße 12, 76131 Karlsruhe, Germany

KIT – The Research University in the Helmholtz Association


More information about the Ipe-discuss mailing list