HDA: Add a Message that the User Can Copy? {[SOLVED]}
715
6
1
olivierth
Member
1075 posts
Joined: April 2017
Offline
Oct. 9, 2024 10:10 a.m.
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
alexwheezy
Member
318 posts
Joined: Jan. 2013
Offline
Oct. 9, 2024 10:33 a.m.
Try the multi string instead.
Attachments:
2024-10-09_17-29.png (43.7 KB)
olivierth
Member
1075 posts
Joined: April 2017
Offline
Oct. 9, 2024 11:33 a.m.
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
ajz3d
Member
580 posts
Joined: Aug. 2014
Offline
Oct. 10, 2024 10:12 a.m.
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)
olivierth
Member
1075 posts
Joined: April 2017
Offline
Oct. 10, 2024 10:51 a.m.
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.
ajz3d
Member
580 posts
Joined: Aug. 2014
Offline
Oct. 10, 2024 1:26 p.m.
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.
olivierth
Member
1075 posts
Joined: April 2017
Offline
Oct. 10, 2024 4:09 p.m.
Ah! I completely missed your file! Yes, it works perfectly, thank you! -Olivier