enable preference option via command

227 views
Skip to first unread message

Pacifique Nzitonda

unread,
Dec 16, 2022, 6:51:32 AM12/16/22
to Python Programming for Autodesk Maya
Hi,
Can someone tell me what is the command or a way to check/uncheck this button?
dasdsa.JPG

Thanks

vince touache

unread,
Dec 16, 2022, 7:06:49 AM12/16/22
to python_in...@googlegroups.com
Some maya tools (or third-party tools) use heads up messages as a convenient way to give the user some information. I can't remember off top of my head what tools is using it in maya, but for the time being, you can generate a custom one, and I'm sure that will look familiar!
inViewMessage -smg "test message" -pos topRight -bkc 0x00000000 -fade;
(MEL)
If your In-View messages are enabled, you'll be able to see the message. Otherwise, it'll be ignored.
Now I'm not sure exactly what you mean by "a way to check/uncheck this button". Can't you simply tick the box from the gui? If not, it might be a graphical bug, and my next try would be to change it via script (I suppose using optionVar)


--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/4bd7892c-00b0-47cf-b22a-6865c4239fe2n%40googlegroups.com.

Pacifique Nzitonda

unread,
Dec 16, 2022, 8:03:45 AM12/16/22
to python_in...@googlegroups.com
Indeed I'm using the inViewmessage from cmds but I noticed sometime in Maya that option in disabled in preferences.
Now I'm looking how to enable it. I also discovered that I can check if it is checked or not through Maya optionVars but can't find a way to set it On/off

You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/oLPUGfUmrfo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAHChmQbZdci9_uB9b0T%3D%3DqEk9Gef4pMegZbEgRhWGPVuf_wwOA%40mail.gmail.com.

Justin Israel

unread,
Dec 16, 2022, 3:07:31 PM12/16/22
to python_in...@googlegroups.com


On Sat, 17 Dec 2022, 2:03 am Pacifique Nzitonda, <nzitonda...@gmail.com> wrote:
Indeed I'm using the inViewmessage from cmds but I noticed sometime in Maya that option in disabled in preferences.
Now I'm looking how to enable it. I also discovered that I can check if it is checked or not through Maya optionVars but can't find a way to set it On/off

Did you try enabling the option in the ScriptEditor menu that will echo commands as you interact with the UI? It may tell you what is being called when you toggle the checkbox. 


On Fri, 16 Dec 2022, 13:06 vince touache, <fruit...@gmail.com> wrote:
Some maya tools (or third-party tools) use heads up messages as a convenient way to give the user some information. I can't remember off top of my head what tools is using it in maya, but for the time being, you can generate a custom one, and I'm sure that will look familiar!
inViewMessage -smg "test message" -pos topRight -bkc 0x00000000 -fade;
(MEL)
If your In-View messages are enabled, you'll be able to see the message. Otherwise, it'll be ignored.
Now I'm not sure exactly what you mean by "a way to check/uncheck this button". Can't you simply tick the box from the gui? If not, it might be a graphical bug, and my next try would be to change it via script (I suppose using optionVar)


Le ven. 16 déc. 2022, à 12 h 51, Pacifique Nzitonda <nzitonda...@gmail.com> a écrit :
Hi,
Can someone tell me what is the command or a way to check/uncheck this button?
dasdsa.JPG

Thanks

--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/4bd7892c-00b0-47cf-b22a-6865c4239fe2n%40googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/oLPUGfUmrfo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAHChmQbZdci9_uB9b0T%3D%3DqEk9Gef4pMegZbEgRhWGPVuf_wwOA%40mail.gmail.com.

--
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_m...@googlegroups.com.

Pacifique Nzitonda

unread,
Dec 17, 2022, 7:31:10 AM12/17/22
to python_in...@googlegroups.com
Hi Justin,
Yes that is what I always do even before opening the documentation😀. When I "Echo all commands"  to see processed commands, Maya shows it all except for that "Enable" checkBox:

optionVar -iv inViewMessageEnable false;
control -edit -enable false prefsInViewMessageAssistEnable;
control -edit -enable false prefsInViewMessageStatusEnable;
control -edit -enable false prefsInViewMessageDisplayTime;
control -edit -enable false prefsInViewMessageFontSize;
control -edit -enable false prefsInViewMessageOpacity;






--
Nzitonda Pacifique
3D Rigger
Tél: (+32) 486 730 323
Belgium - Brussels
Reply all
Reply to author
Forward
0 new messages