update source code

This commit is contained in:
indigo 2025-12-29 09:24:43 +08:00
parent 531726bd70
commit 7d25bb8f2f
2 changed files with 10 additions and 7 deletions

View File

@ -47,7 +47,7 @@ global proc AEadjustInputType(string $attr)
setAttr $attr $value; setAttr $attr $value;
} }
global AEVideoPathNew(string $attr) global proc AEVideoPathNew(string $attr)
{ {
setUITemplate -pst attributeEditorTemplate; setUITemplate -pst attributeEditorTemplate;
textFieldButtonGrp -l "Video Path" a2VAEVideoPath; 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`; string $value = `getAttr $attr`;
textFieldButtonGrp -e -tx $value a2VAEVideoPath; textFieldButtonGrp -e -tx $value a2VAEVideoPath;
} }
global AEVideoPathBrowse(string $attr) global proc AEVideoPathBrowse(string $attr)
{ {
string $value = `getAttr $attr`; string $value = `getAttr $attr`;
string $currentDir = `dirname $value`; 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`; string $value = `textFieldButtonGrp -q -tx a2VAEVideoPath`;
setAttr $attr $value; setAttr $attr $value;
@ -110,7 +110,10 @@ global proc AEVideo2ARKitTemplate(string $nodeName)
editorTemplate -callCustom "AEInputDeviceNew" editorTemplate -callCustom "AEInputDeviceNew"
"AEInputDeviceReplace" "AEInputDeviceReplace"
$nodeName; $nodeName;
editorTemplate -addControl "videoPath"; //editorTemplate -addControl "videoPath";
editorTemplate -callCustom "AEVideoPathNew"
"AEVideoPathReplace"
$nodeName;
editorTemplate -addControl "networkUrl"; editorTemplate -addControl "networkUrl";
editorTemplate -addControl "networkPort"; editorTemplate -addControl "networkPort";
editorTemplate -addControl "modelPath"; editorTemplate -addControl "modelPath";

View File

@ -120,7 +120,7 @@ class Video2ARKitNode(om.MPxNode):
Video2ARKitNode.aNetworkUrl = tAttr.create("networkUrl", "nu", om.MFnData.kString) Video2ARKitNode.aNetworkUrl = tAttr.create("networkUrl", "nu", om.MFnData.kString)
om.MPxNode.addAttribute(Video2ARKitNode.aNetworkUrl) 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) om.MPxNode.addAttribute(Video2ARKitNode.aNetworkPort)
# 輸入:影片路徑 # 輸入:影片路徑