maya display layer "T" mode not working

maya display layer "T" mode not working

tjdrbrla
Advocate Advocate
4,036 Views
23 Replies
Message 1 of 24

maya display layer "T" mode not working

tjdrbrla
Advocate
Advocate

 

If you use "T" mode on the Display Layer, you need to see Wire, but you can't. There's a kind of gray necklace that you see on that person's neck. Although I thought I made a wrong layer and made a cube and pressed the button on the far right of the layer to insert the object, the wire was not visible in Object Mode. But in Wire Mode 4, I was able to see that it came out properly. What's the problem?

 

 

tjdrbrla_0-1675076475635.png

 

 

 

0 Likes
Accepted solutions (1)
4,037 Views
23 Replies
Replies (23)
Message 2 of 24

tjdrbrla
Advocate
Advocate

It works well in Wire mode.
But it doesn't work in Object mode (5).

 

 

tjdrbrla_0-1675076787515.png

 

0 Likes
Message 3 of 24

loncy888
Enthusiast
Enthusiast
Accepted solution

Right-click layer to open the Attributes panel and Enable override.
Or execute MEL code:

setAttr "layerName.enabled" true;

I hope this is helpful.

loncy
Message 4 of 24

tjdrbrla
Advocate
Advocate

In the way I tried, I opened the corresponding Layer - Edit Layer window, ran the corresponding mel command in the Attribute Editor, and saved it, but nothing happened.

 

 

tjdrbrla_0-1675127336258.png

 

0 Likes
Message 5 of 24

tjdrbrla
Advocate
Advocate
I wrote down the method I tried in the comments below. But it didn't work.

If you delete the document folder and run it again, this problem will be solved, but I don't want to initialize the settings.
0 Likes
Message 6 of 24

tjdrbrla
Advocate
Advocate

I think I found a solution!
That option was turned on in the settings.
I turned it off right away, so it's settled.
Sorry. I should've looked for more.
But thank you for your help.

 

 

 

tjdrbrla_0-1675127802927.png

 

0 Likes
Message 7 of 24

loncy888
Enthusiast
Enthusiast

aha, learn from each other.

loncy
Message 8 of 24

tjdrbrla
Advocate
Advocate
Uh... Um, I have a favor to ask of you. Can you do it for me?

The panel toggle command you told me last time is very, very well used (I'm very satisfied with it!) I use it while saving the Modeling Toolkit Tab under the outline, but I want you to hide the Modeling Toolkit while collapcing the outline panel, but the Modeling Toolkit was left.
So I tried to type the name of the panel in the command, but it didn't recognize it.
So I turned off the modeling tool kit, hid the panel, and made it in a format that opens automatically when I open the panel, but the modeling toolkit comes up, not down, is there a way to solve this? I think I can solve it if I know the command to collapse the panel of the Modeling toolkit.
0 Likes
Message 9 of 24

tjdrbrla
Advocate
Advocate
showModelingToolkit;
ToggleModelingToolkit;
if (`workspaceControl -ex Outliner` &&
!`workspaceControl -q -fl Outliner`) {
int $collapse = `workspaceControl -q -clp Outliner`;
workspaceControl -e -clp (!$collapse) Outliner;
}

If you use the above command, everything is hidden.
But when I run the command again and call it up, the Modeling Toolkit comes up above the Outliner. I want to call it up on the same screen with one command, but is there any way?
If it's not an easy command to find, you don't have to tell me. I'll just sign up for two Hot Keys.




I used the lSUI -p; command to retrieve the commands of the panels, but I couldn't see the commands of the Modeling Toolkit.

lsUI -p;
// Result: StereoPanel clipEditorPanel1 contentBrowserPanel1 createNodePanel1 dopeSheetPanel1 dynPaintScriptedPanel dynRelEdPanel1 graphEditor1 hyperGraphPanel1 hyperShadePanel1 modelPanel1 modelPanel2 modelPanel3 modelPanel4 nodeEditorPanel1 outlinerPanel1 outlinerPanel2 polyTexturePlacementPanel1 posePanel1 profilerPanel1 referenceEditorPanel1 relationshipPanel1 renderView scriptEditorPanel1 sequenceEditorPanel1 shapePanel1 timeEditorPanel1 visorPanel1
0 Likes
Message 10 of 24

tjdrbrla
Advocate
Advocate

 

1.png

0 Likes
Message 11 of 24

loncy888
Enthusiast
Enthusiast

TAB form:

workspaceControl -e -rs -ttc Outliner 2 NEXDockControl;

Upper and lower form:

workspaceControl -e -rs -dtc Outliner "bottom" NEXDockControl;
loncy
0 Likes
Message 12 of 24

loncy888
Enthusiast
Enthusiast

To change the position of the tabLabel, use the -tp flag.

loncy
0 Likes
Message 13 of 24

tjdrbrla
Advocate
Advocate
Thank you for letting me know, but I didn't study mel and python separately.
I don't know where or how to add tp.
May I ask how I can bring the modeling toolkit position down and bring it back to the same position when I collapse the panel and expand it again?
0 Likes
Message 14 of 24

loncy888
Enthusiast
Enthusiast

I need to know what form you want. In the 11th message.

Let me know the answer after you test it.

loncy
0 Likes
Message 15 of 24

tjdrbrla
Advocate
Advocate

 

workspaceControl -e -rs -ttc Outliner 2 NEXDockControl;

 

 

 

workspaceControl -e -rs -dtc Outliner "bottom" NEXDockControl;

 

workspaceControl -e -rs -ttc Outliner 2 NEXDockControl;
workspaceControl -e -rs -dtc Outliner "bottom" NEXDockControl;

 

 

 

 

asdf.png

 

 

0 Likes
Message 16 of 24

tjdrbrla
Advocate
Advocate

5.png

I want to be like the order of the pictures!

0 Likes
Message 17 of 24

loncy888
Enthusiast
Enthusiast
//
// Click
//
// Initialize the layout:
// Outliner -> Tool Settings -> Modeling Toolkit
if (`workspaceControl -ex Outliner`) {
	if (`workspaceControl -ex ToolSettings`) {
		workspaceControl -e -ttc Outliner 2 ToolSettings;
	}
	if (`workspaceControl -ex NEXDockControl`) {
		workspaceControl -e -ttc Outliner 3 NEXDockControl;
	}
	workspaceControl -e -rs -tp "north" true Outliner;
}
// Automatically switch to the Modeling Toolkit when you press F2 to switch to the Modeling Menu set.
// When you switch any tool with tool Settings, automatically switch to Tool Settings.
global proc autoToggleTabs (int $jobNr)
{
	if (1 == $jobNr) {
		string $menuSet = `menuSet -q -cms`;
		if ("modelingMenuSet" == $menuSet) {
			workspaceControl -e -rs NEXDockControl;
		}
	} else {
		workspaceControl -e -rs ToolSettings;
	}
}

{
	global int $gAutoToggleTabsScriptJobs[];
	if (`size $gAutoToggleTabsScriptJobs`) {
		for ($job in $gAutoToggleTabsScriptJobs) {
			scriptJob -k $job -f;
		}
	}
	int $scriptJob;
	$gAutoToggleTabsScriptJobs = {};
	$scriptJob = `scriptJob -e MenuModeChanged "autoToggleTabs 1" -kws`;
	$gAutoToggleTabsScriptJobs[0] = $scriptJob;
	$scriptJob = `scriptJob -e ToolChanged "autoToggleTabs 2" -kws`;
	$gAutoToggleTabsScriptJobs[1] = $scriptJob;
}
//
// Double-click
//
// If you want to turn off the auto toggle TAB, do:
// Right - click the tool button saved above to set in double - click command.
{
	global int $gAutoToggleTabsScriptJobs[];
	if (`size $gAutoToggleTabsScriptJobs`) {
		for ($job in $gAutoToggleTabsScriptJobs) {
			scriptJob -k $job -f;
		}
	}
	$gAutoToggleTabsScriptJobs = {};
	// I think the best time for Outliner to expand is after turning off automatic.
	if (`workspaceControl -ex Outliner` &&
		!`workspaceControl -q -fl Outliner`) {
		int $collapse = `workspaceControl -q -clp Outliner`;
		workspaceControl -e -clp (!$collapse) Outliner;
	}
}
loncy
0 Likes
Message 18 of 24

tjdrbrla
Advocate
Advocate

I tried, but I didn't get the answer I wanted. Maybe I didn't understand it well.
Can I put a panel of the Modeling Toolkit instead of the outliner panel in the command?
I couldn't find the panel name, but I think you can do it.
If I do the actions I've tried in order.
Outliner Collapse - ModelingToolki Collapse 한 다음
If I do the Outliner Expand - Modeling Toolkit Expand in order, the interface I want comes out.

Then, since I know the command to switch the panel of the outliner, I think I can do the above method if I know the command to Collapse the Modeling Toolkit panel and switch back to Expand.

 

 

 

 

 

if (`workspaceControl -ex Outliner` &&
	!`workspaceControl -q -fl Outliner`) {
	int $collapse = `workspaceControl -q -clp Outliner`;
	workspaceControl -e -clp (!$collapse) Outliner;
}

 

0 Likes
Message 19 of 24

loncy888
Enthusiast
Enthusiast

You want to put the outline view and the tool Settings together. The modeling kit goes under them, right?

like this?

// Initialize the layout:
// Outliner -> Tool Settings -> Modeling Toolkit
if (`workspaceControl -ex Outliner`) {
	if (`workspaceControl -ex ToolSettings`) {
		workspaceControl -e -ttc Outliner 2 ToolSettings;
	}
	if (`workspaceControl -ex NEXDockControl`) {
		workspaceControl -e -dtc Outliner "bottom" NEXDockControl;
	}
	workspaceControl -e -rs -tp "north" true Outliner;
}
loncy
0 Likes
Message 20 of 24

tjdrbrla
Advocate
Advocate
I tried the above command, but nothing happened.
0 Likes