HDA: Add a Message that the User Can Copy? {[SOLVED]}

   574   6   1
User Avatar
Member
1069 posts
Joined: April 2017
Offline
Hi!

I need the user to have access to a python script they need to use in Maya to work with my HDA. How can I have a text that can be copied in my HDA? I tried a "message" parameter but I can't highlight the text in the UI so I can't copy it...

-Olivier
Edited by olivierth - Oct. 10, 2024 16:14:37
User Avatar
Member
296 posts
Joined: Jan. 2013
Offline
Try the multi string instead.

Attachments:
2024-10-09_17-29.png (43.7 KB)

User Avatar
Member
1069 posts
Joined: April 2017
Offline
ah, works nicely. Is there a way to lock the text so it can't be edited by the user? (accidents happens)
Edited by olivierth - Oct. 9, 2024 11:33:56
User Avatar
Member
566 posts
Joined: Aug. 2014
Offline
olivierth
Is there a way to lock the text so it can't be edited by the user?

Maybe a Label parameter type and a button to copy its contents?

Attachments:
object_ajz3d.test_label_copy.1.0.hdanc (10.5 KB)

User Avatar
Member
1069 posts
Joined: April 2017
Offline
That would be nice but I know nothing about setting that up and I also have zero knowlege in Python. But if you have detailed steps to achieve this, I would try it out.
User Avatar
Member
566 posts
Joined: Aug. 2014
Offline
olivierth
if you have detailed steps to achieve this, I would try it out.
Have you inspected the HDA attached to my last post? It's all there.
User Avatar
Member
1069 posts
Joined: April 2017
Offline
Ah!

I completely missed your file! Yes, it works perfectly, thank you!

-Olivier
  • Quick Links