@@ -1432,6 +1432,12 @@ function videoSettingsToggleHandler(settingsNode) {
14321432 const sourceAudioSyncWidget = settingsNode . widgets . find ( w => w && w . name === "sourceAudioSync" ) ;
14331433 const useTurboWidget = settingsNode . widgets . find ( w => w && w . name === "useTurbo" ) ;
14341434 const turboWidget = settingsNode . widgets . find ( w => w && w . name === "turbo" ) ;
1435+ const useLoopWidget = settingsNode . widgets . find ( w => w && w . name === "useLoop" ) ;
1436+ const loopWidget = settingsNode . widgets . find ( w => w && w . name === "loop" ) ;
1437+ const useHdrWidget = settingsNode . widgets . find ( w => w && w . name === "useHdr" ) ;
1438+ const hdrWidget = settingsNode . widgets . find ( w => w && w . name === "hdr" ) ;
1439+ const useExrExportWidget = settingsNode . widgets . find ( w => w && w . name === "useExrExport" ) ;
1440+ const exrExportWidget = settingsNode . widgets . find ( w => w && w . name === "exrExport" ) ;
14351441 const useVoicePromptWidget = settingsNode . widgets . find ( w => w && w . name === "useVoicePrompt" ) ;
14361442 const voicePromptWidget = settingsNode . widgets . find ( w => w && w . name === "voicePrompt" ) ;
14371443 const useSafetyFilterWidget = settingsNode . widgets . find ( w => w && w . name === "useSafetyFilter" ) ;
@@ -1494,6 +1500,9 @@ function videoSettingsToggleHandler(settingsNode) {
14941500 if ( usePreserveAudioWidget && preserveAudioWidget ) toggleWidgetState ( usePreserveAudioWidget , preserveAudioWidget , "preserveAudio" ) ;
14951501 if ( useSourceAudioSyncWidget && sourceAudioSyncWidget ) toggleWidgetState ( useSourceAudioSyncWidget , sourceAudioSyncWidget , "sourceAudioSync" ) ;
14961502 if ( useTurboWidget && turboWidget ) toggleWidgetState ( useTurboWidget , turboWidget , "turbo" ) ;
1503+ if ( useLoopWidget && loopWidget ) toggleWidgetState ( useLoopWidget , loopWidget , "loop" ) ;
1504+ if ( useHdrWidget && hdrWidget ) toggleWidgetState ( useHdrWidget , hdrWidget , "hdr" ) ;
1505+ if ( useExrExportWidget && exrExportWidget ) toggleWidgetState ( useExrExportWidget , exrExportWidget , "exrExport" ) ;
14971506 if ( useVoicePromptWidget && voicePromptWidget ) toggleWidgetState ( useVoicePromptWidget , voicePromptWidget , "voicePrompt" ) ;
14981507 if ( useSafetyFilterWidget && safetyFilterWidget ) toggleWidgetState ( useSafetyFilterWidget , safetyFilterWidget , "safetyFilter" ) ;
14991508 if ( usePromptUpsamplingWidget && promptUpsamplingWidget ) toggleWidgetState ( usePromptUpsamplingWidget , promptUpsamplingWidget , "promptUpsampling" ) ;
@@ -1674,6 +1683,49 @@ function videoInferenceSettingsSegmentsToggleHandler(node) {
16741683 wireSegment ( 4 ) ;
16751684}
16761685
1686+ function videoInferenceSettingsControlToggleHandler ( node ) {
1687+ if ( ! node ?. widgets ) return ;
1688+
1689+ const useAutoControlsWidget = node . widgets . find ( w => w && w . name === "useAutoControls" ) ;
1690+ const autoControlsWidget = node . widgets . find ( w => w && w . name === "autoControls" ) ;
1691+ const useStrengthWidget = node . widgets . find ( w => w && w . name === "useStrength" ) ;
1692+ const strengthWidget = node . widgets . find ( w => w && w . name === "strength" ) ;
1693+ const useDepthBlurWidget = node . widgets . find ( w => w && w . name === "useDepthBlur" ) ;
1694+ const depthBlurWidget = node . widgets . find ( w => w && w . name === "depthBlur" ) ;
1695+ const useFaceWidget = node . widgets . find ( w => w && w . name === "useFace" ) ;
1696+ const faceWidget = node . widgets . find ( w => w && w . name === "face" ) ;
1697+ const useNormalsAugmentationWidget = node . widgets . find ( w => w && w . name === "useNormalsAugmentation" ) ;
1698+ const normalsAugmentationWidget = node . widgets . find ( w => w && w . name === "normalsAugmentation" ) ;
1699+ const usePoseStrengthWidget = node . widgets . find ( w => w && w . name === "usePoseStrength" ) ;
1700+ const poseStrengthWidget = node . widgets . find ( w => w && w . name === "poseStrength" ) ;
1701+ const useTrajectorySparsityWidget = node . widgets . find ( w => w && w . name === "useTrajectorySparsity" ) ;
1702+ const trajectorySparsityWidget = node . widgets . find ( w => w && w . name === "trajectorySparsity" ) ;
1703+
1704+ function toggleWidgetState ( useWidget , paramWidget , paramName ) {
1705+ if ( ! useWidget || ! paramWidget ) return ;
1706+ function applyState ( ) {
1707+ const enabled = useWidget . value === true ;
1708+ toggleWidgetEnabled ( paramWidget , enabled , node ) ;
1709+ if ( paramWidget . options && paramWidget . options . element ) {
1710+ paramWidget . options . element . disabled = ! enabled ;
1711+ paramWidget . options . element . style . opacity = enabled ? "1" : "0.5" ;
1712+ paramWidget . options . element . style . pointerEvents = enabled ? "auto" : "none" ;
1713+ }
1714+ node . setDirtyCanvas ( true ) ;
1715+ }
1716+ setTimeout ( applyState , 100 ) ;
1717+ appendWidgetCB ( useWidget , ( ) => setTimeout ( applyState , 50 ) ) ;
1718+ }
1719+
1720+ if ( useAutoControlsWidget && autoControlsWidget ) toggleWidgetState ( useAutoControlsWidget , autoControlsWidget , "autoControls" ) ;
1721+ if ( useStrengthWidget && strengthWidget ) toggleWidgetState ( useStrengthWidget , strengthWidget , "strength" ) ;
1722+ if ( useDepthBlurWidget && depthBlurWidget ) toggleWidgetState ( useDepthBlurWidget , depthBlurWidget , "depthBlur" ) ;
1723+ if ( useFaceWidget && faceWidget ) toggleWidgetState ( useFaceWidget , faceWidget , "face" ) ;
1724+ if ( useNormalsAugmentationWidget && normalsAugmentationWidget ) toggleWidgetState ( useNormalsAugmentationWidget , normalsAugmentationWidget , "normalsAugmentation" ) ;
1725+ if ( usePoseStrengthWidget && poseStrengthWidget ) toggleWidgetState ( usePoseStrengthWidget , poseStrengthWidget , "poseStrength" ) ;
1726+ if ( useTrajectorySparsityWidget && trajectorySparsityWidget ) toggleWidgetState ( useTrajectorySparsityWidget , trajectorySparsityWidget , "trajectorySparsity" ) ;
1727+ }
1728+
16771729function audioInferenceSpeechToggleHandler ( speechNode ) {
16781730 if ( ! speechNode ?. widgets ) return ;
16791731
@@ -2937,6 +2989,7 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
29372989 "lumaai:1@1 (Luma Ray 1.6)" ,
29382990 "lumaai:2@1 (Luma Ray 2)" ,
29392991 "lumaai:2@2 (Luma Ray 2 Flash)" ,
2992+ "luma:ray@3.2 (Luma Ray 3.2)" ,
29402993 ] ,
29412994 "Sync" : [
29422995 "sync:lipsync-2@1 (Sync LipSync 2)" ,
@@ -3063,6 +3116,7 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
30633116 "lumaai:1@1" : { "width" : 1080 , "height" : 720 } ,
30643117 "lumaai:2@1" : { "width" : 1080 , "height" : 720 } ,
30653118 "lumaai:2@2" : { "width" : 1080 , "height" : 720 } ,
3119+ "luma:ray@3.2" : { "width" : 1280 , "height" : 720 } ,
30663120 "sync:lipsync-2@1" : { "width" : 0 , "height" : 0 } ,
30673121 "sync:lipsync-2-pro@1" : { "width" : 0 , "height" : 0 } ,
30683122 "sync:react-1@1" : { "width" : 0 , "height" : 0 } ,
@@ -3168,6 +3222,7 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
31683222 "lumaai:1@1" : "720p" ,
31693223 "lumaai:2@1" : "720p" ,
31703224 "lumaai:2@2" : "720p" ,
3225+ "luma:ray@3.2" : "720p" ,
31713226 "sync:lipsync-2@1" : "720p" ,
31723227 "sync:lipsync-2-pro@1" : "720p" ,
31733228 "sync:react-1@1" : "720p" ,
@@ -5314,6 +5369,7 @@ export {
53145369 videoInferenceSettingsActiveSpeakerDetectionToggleHandler ,
53155370 videoInferenceSettingsActiveSpeakerBoundingBoxesToggleHandler ,
53165371 videoInferenceSettingsSegmentsToggleHandler ,
5372+ videoInferenceSettingsControlToggleHandler ,
53175373 acceleratorOptionsToggleHandler ,
53185374 bytedanceProviderSettingsToggleHandler ,
53195375 xaiProviderSettingsToggleHandler ,
0 commit comments