update source code
This commit is contained in:
parent
531726bd70
commit
7d25bb8f2f
|
|
@ -47,7 +47,7 @@ global proc AEadjustInputType(string $attr)
|
|||
setAttr $attr $value;
|
||||
}
|
||||
|
||||
global AEVideoPathNew(string $attr)
|
||||
global proc AEVideoPathNew(string $attr)
|
||||
{
|
||||
setUITemplate -pst attributeEditorTemplate;
|
||||
textFieldButtonGrp -l "Video Path" a2VAEVideoPath;
|
||||
|
|
@ -61,13 +61,13 @@ global AEVideoPathNew(string $attr)
|
|||
|
||||
}
|
||||
|
||||
global AEVideoPathReplace(string $attr)
|
||||
global proc AEVideoPathReplace(string $attr)
|
||||
{
|
||||
string $value = `getAttr $attr`;
|
||||
textFieldButtonGrp -e -tx $value a2VAEVideoPath;
|
||||
}
|
||||
|
||||
global AEVideoPathBrowse(string $attr)
|
||||
global proc AEVideoPathBrowse(string $attr)
|
||||
{
|
||||
string $value = `getAttr $attr`;
|
||||
string $currentDir = `dirname $value`;
|
||||
|
|
@ -80,7 +80,7 @@ global AEVideoPathBrowse(string $attr)
|
|||
}
|
||||
}
|
||||
|
||||
global AEAdjustVideoPath(string $attr)
|
||||
global proc AEAdjustVideoPath(string $attr)
|
||||
{
|
||||
string $value = `textFieldButtonGrp -q -tx a2VAEVideoPath`;
|
||||
setAttr $attr $value;
|
||||
|
|
@ -110,7 +110,10 @@ global proc AEVideo2ARKitTemplate(string $nodeName)
|
|||
editorTemplate -callCustom "AEInputDeviceNew"
|
||||
"AEInputDeviceReplace"
|
||||
$nodeName;
|
||||
editorTemplate -addControl "videoPath";
|
||||
//editorTemplate -addControl "videoPath";
|
||||
editorTemplate -callCustom "AEVideoPathNew"
|
||||
"AEVideoPathReplace"
|
||||
$nodeName;
|
||||
editorTemplate -addControl "networkUrl";
|
||||
editorTemplate -addControl "networkPort";
|
||||
editorTemplate -addControl "modelPath";
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ class Video2ARKitNode(om.MPxNode):
|
|||
Video2ARKitNode.aNetworkUrl = tAttr.create("networkUrl", "nu", om.MFnData.kString)
|
||||
om.MPxNode.addAttribute(Video2ARKitNode.aNetworkUrl)
|
||||
|
||||
Video2ARKitNode.aNetworkPort = nAttr.create("networkPort", "np", om.MFnNumericData.kInt, 8080)
|
||||
Video2ARKitNode.aNetworkPort = nAttr.create("networkPort", "np", om.MFnNumericData.kInt, 39539)
|
||||
om.MPxNode.addAttribute(Video2ARKitNode.aNetworkPort)
|
||||
|
||||
# 輸入:影片路徑
|
||||
|
|
|
|||
Loading…
Reference in New Issue