Discussion:
[Maya-Python] how to add hyperlink in text ?
Virbhadra Gupta
2018-08-02 19:20:19 UTC
Permalink
hello,

i have create a window. it has some text. i want to add hyperlink to some
text let's www.google.com

anyone know about it ?
is it cmds.text() ?
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/2285ee9c-f7ad-4042-8489-6de05e37cb75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Justin Israel
2018-08-02 19:36:56 UTC
Permalink
Post by Virbhadra Gupta
hello,
i have create a window. it has some text. i want to add hyperlink to some
text let's www.google.com
anyone know about it ?
is it cmds.text() ?
http://help.autodesk.com/cloudhelp/2016/ENU/Maya-Tech-Docs/CommandsPython/text.html#flaghyperlink
Post by Virbhadra Gupta
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/2285ee9c-f7ad-4042-8489-6de05e37cb75%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/2285ee9c-f7ad-4042-8489-6de05e37cb75%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0JzSfVpgCeXE3QXiXWCRkdxSZTfWsjHCrF%2B5BxGVLcVQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Virbhadra Gupta
2018-08-03 15:51:10 UTC
Permalink
Hey can you give any example like

cmds.text(l="hey click here.")

i need hyperlink in click.

i actually i don't know html :(
Post by Justin Israel
Post by Virbhadra Gupta
hello,
i have create a window. it has some text. i want to add hyperlink to some
text let's www.google.com
anyone know about it ?
is it cmds.text() ?
http://help.autodesk.com/cloudhelp/2016/ENU/Maya-Tech-Docs/CommandsPython/text.html#flaghyperlink
Post by Virbhadra Gupta
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/2285ee9c-f7ad-4042-8489-6de05e37cb75%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/2285ee9c-f7ad-4042-8489-6de05e37cb75%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/305e98f0-318c-4b0e-b7d6-30a7f689b483%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Justin Israel
2018-08-03 20:10:31 UTC
Permalink
Post by Virbhadra Gupta
Hey can you give any example like
cmds.text(l="hey click here.")
i need hyperlink in click.
i actually i don't know html :(
Google knows html for you.

Try this:

cmds.text(l='<a href="http://lmgtfy.com/?q=HTML+link">hey click here.</a>',
hl=True)
Post by Virbhadra Gupta
Post by Justin Israel
Post by Virbhadra Gupta
hello,
i have create a window. it has some text. i want to add hyperlink to
some text let's www.google.com
anyone know about it ?
is it cmds.text() ?
http://help.autodesk.com/cloudhelp/2016/ENU/Maya-Tech-Docs/CommandsPython/text.html#flaghyperlink
Post by Virbhadra Gupta
--
You received this message because you are subscribed to the Google
Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/2285ee9c-f7ad-4042-8489-6de05e37cb75%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/2285ee9c-f7ad-4042-8489-6de05e37cb75%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/305e98f0-318c-4b0e-b7d6-30a7f689b483%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/305e98f0-318c-4b0e-b7d6-30a7f689b483%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2PEb7gU2Gr1M07%3DB0OEyySG6gT55n10bmZnq5E%3DOKjog%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Virbhadra Gupta
2018-08-04 19:12:19 UTC
Permalink
Thanks Justin!!!
Post by Justin Israel
Post by Virbhadra Gupta
Hey can you give any example like
cmds.text(l="hey click here.")
i need hyperlink in click.
i actually i don't know html :(
Google knows html for you.
cmds.text(l='<a href="http://lmgtfy.com/?q=HTML+link">hey click
here.</a>', hl=True)
Post by Virbhadra Gupta
Post by Justin Israel
Post by Virbhadra Gupta
hello,
i have create a window. it has some text. i want to add hyperlink to
some text let's www.google.com
anyone know about it ?
is it cmds.text() ?
http://help.autodesk.com/cloudhelp/2016/ENU/Maya-Tech-Docs/CommandsPython/text.html#flaghyperlink
Post by Virbhadra Gupta
--
You received this message because you are subscribed to the Google
Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/2285ee9c-f7ad-4042-8489-6de05e37cb75%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/2285ee9c-f7ad-4042-8489-6de05e37cb75%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/305e98f0-318c-4b0e-b7d6-30a7f689b483%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/305e98f0-318c-4b0e-b7d6-30a7f689b483%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/3ab9920e-da88-47b9-a4d5-ebebbb58d9a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...