Custom command line UI, I only wants the warning part of it

Custom command line UI, I only wants the warning part of it

Anonymous
Not applicable
628 Views
2 Replies
Message 1 of 3

Custom command line UI, I only wants the warning part of it

Anonymous
Not applicable

Hey all! 

I am creating a custom UI  for a tool and I'd like to have only the error/warning part of the commandline to appear. Do you have any idea how this could be achieved? See attached image

 

Help.png

I couldn't find any interesting ideas using script jobs. Any idea?

 


Thanks for your help!

0 Likes
629 Views
2 Replies
Replies (2)
Message 2 of 3

rajasekaransurjen
Collaborator
Collaborator

Hi,

Can you share your script.

0 Likes
Message 3 of 3

Anonymous
Not applicable

Hi!

I am trying to find a solution using maya's online commandLine documentation. Here is the code
I thought about having a form with a negative offset, it worked if I had a static window, but I'd like to have it stretching.

import maya.cmds as cmds

window = cmds.window()
form = cmds.formLayout()

cmdLine = cmds.commandLine()
cmds.commandLine( cmdLine, edit=True, height=25)
cmds.formLayout( form, edit=True, attachForm=[(cmdLine, 'top', 0), (cmdLine, 'left', 0), (cmdLine, 'right', 0)], attachNone=(cmdLine, 'bottom'))

cmds.showWindow( window )

Thanks 🙂 

0 Likes