作者: 奇 时间: 2012-1-28 23:26
龙马精神 神采奕奕 一帆风顺 顺理成章 章月句星 星罗棋布 步步高升 升官发财 财源广进 泰然自若 一代英豪,九州生色。 作者: tc 时间: 2012-2-5 23:29
沙发不解释 作者: tc 时间: 2012-3-5 23:19
不错哦,顶一下...... 作者: 晃晃 时间: 2012-3-9 19:25
溜达,溜达 作者: tc 时间: 2012-3-12 23:23
长了不少见识 作者: 晃晃 时间: 2012-3-15 23:19
真不错,全存下来了. 作者: 菜刀吻电线 时间: 2012-5-21 23:18
不错 非常经典 实用 作者: tc 时间: 2012-9-25 23:22
好可爱的字,学习了 作者: gym 时间: 2014-4-24 17:57
制作效果不错,谢谢分享!作者: 夜里的u0 时间: 2017-5-19 17:11
66666666666作者: enployment 时间: 2017-7-13 11:38
// Copyright (C) 1997-2013 Autodesk, Inc., and/or its licensors.
// All rights reserved.
//
// The coded instructions, statements, computer programs, and/or related
// material (collectively the "Data") in these files contain unpublished
// information proprietary to Autodesk, Inc. ("Autodesk") and/or its licensors,
// which is protected by U.S. and Canadian federal copyright law and by
// international treaties.
//
// The Data is provided for use exclusively by You. You have the right to use,
// modify, and incorporate this Data into other products for purposes authorized
// by the Autodesk software license agreement, without fee.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. AUTODESK
// DOES NOT MAKE AND HEREBY DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTIES
// INCLUDING, BUT NOT LIMITED TO, THE WARRANTIES OF NON-INFRINGEMENT,
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, OR ARISING FROM A COURSE
// OF DEALING, USAGE, OR TRADE PRACTICE. IN NO EVENT WILL AUTODESK AND/OR ITS
// LICENSORS BE LIABLE FOR ANY LOST REVENUES, DATA, OR PROFITS, OR SPECIAL,
// DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES, EVEN IF AUTODESK AND/OR ITS
// LICENSORS HAS BEEN ADVISED OF THE POSSIBILITY OR PROBABILITY OF SUCH DAMAGES.
// Procedure Name:
// updateUvSetEditor
//
// Description:
// Updates the uvSetEditor when called. When the uvSetEditor is created
// it creates a scriptJob that is tied to it that cals this when the selection
// changes. This is also called from uvSetEditCmd.
//
// Input Arguments:
// None.
//
// Return Value:
// None.
//
global proc updateUvSetEditor( )
{
// typically, user will have transform selected so find mesh shapes
//
string $objects[] = `listRelatives -s -fullPath -type "mesh" -noIntermediate`;
// if there is nothing, check to see if shapes are selected
//
if (!`size $objects`)
$objects = `ls -sl -type "mesh"`;
// if there is still nothing, check to see if components are selected
//
if (!`size $objects`)
$objects = `listRelatives -p -fullPath -type "mesh"`;
// clear the set list
//
textScrollList -e -ra uvSetList;
// if there are meshes, populate the list with the cpv sets
// from the first selected mesh
//
if (`size $objects`){
//***need to add controls for enable/disable state of buttons
// select the current uv set
//
string $currentUVSet[] = `polyUVSet -q -currentPerInstanceUVSet $objects[0]`;
if( `size $currentUVSet` > 0 )
textScrollList -e -si $currentUVSet[0] uvSetList;
}
}
// Procedure Name:
// builduvSetEditorContextHelpItems
//
// Description:
// Creates the help menu and items for the uvSetEditor.
//
// Input Arguments:
// $nameRoot - name to use as the root of all item names
// $menuParent - the name of the parent of this menu
//
// Return Value:
// None
//
global proc builduvSetEditorContextHelpItems(string $nameRoot, string $menuParent)
{
menuItem -label (uiRes("m_uvSetEditor.kHelpOnUVSetEditor"))
-enableCommandRepeat false
-command "showHelp uvSetEditor";
formLayout -e
-af uvSetList top 5
-ac uvSetList right 5 uvSetEditorButtonLayout
-af uvSetList left 5
-ac uvSetList bottom 5 scrollButtonsSeparator
-af uvSetEditorButtonLayout top 5
-af uvSetEditorButtonLayout right 5
-an uvSetEditorButtonLayout left
-ac uvSetEditorButtonLayout bottom 5 scrollButtonsSeparator
-af scrollButtonsSeparator left 0
-af scrollButtonsSeparator right 0
-ac scrollButtonsSeparator bottom 5 updateButton
-an scrollButtonsSeparator top
-af updateButton left 5
-af updateButton bottom 5
-ap updateButton right 3 50
-an updateButton top
-ap closeButton left 2 50
-af closeButton bottom 5
-af closeButton right 5
-an closeButton top
colorEditorForm;
// Create script jobs to keep the uv set editor up to date
// when the selection changes
//
scriptJob
-parent "uvSetEditor"
-event "SelectionChanged"
"updateUvSetEditor";