Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CreateScene: invalid request type #576

Closed
BarryCarlyon opened this issue Aug 7, 2020 · 5 comments
Closed

CreateScene: invalid request type #576

BarryCarlyon opened this issue Aug 7, 2020 · 5 comments

Comments

@BarryCarlyon
Copy link

BarryCarlyon commented Aug 7, 2020

Issue type
  • Bug report
Description

CreateScene is documented in PROTOCOL as since v4.8.0
It's not in the change log for 4.8.0
Upon attempting to call it I get a invalid request type error

Steps to reproduce and other useful info
  • Create a browser source
  • Implement OBS Websocket JS (in this case v4.0.0 and v4.0.1)
  • Attempt to call CreateScene
  • Recieve Error

Example JS code

var obs = new OBSWebSocket();

obs.connect({
    address: '127.0.0.1:4444',
    password: 'someExamplePassword'
})
.then(() => {
    obs.send('CreateScene', {sceneName: 'Barry'}).then(resp => {console.log(resp)}).catch(err => {console.error(err)});
});

Alternatively, call GetVersion and receive a response which doesn't list CreateScene as available.

Technical information
  • Operating System : Windows 10
  • OBS Studio version : 25.0.4 and 25.0.8 tested
  • obs-websocket version : 4.8.0

Response to GetVersion:

{"available-requests":"AddFilterToSource,Authenticate,BroadcastCustomMessage,DeleteSceneItem,DisableStudioMode,DuplicateSceneItem,EnableStudioMode,GetAudioMonitorType,GetAuthRequired,GetBrowserSourceProperties,GetCurrentProfile,GetCurrentScene,GetCurrentSceneCollection,GetCurrentTransition,GetFilenameFormatting,GetMute,GetOutputInfo,GetPreviewScene,GetRecordingFolder,GetSceneItemProperties,GetSceneList,GetSceneTransitionOverride,GetSourceFilterInfo,GetSourceFilters,GetSourceSettings,GetSourcesList,GetSourceTypesList,GetSpecialSources,GetStats,GetStreamingStatus,GetStreamSettings,GetStudioModeStatus,GetSyncOffset,GetTextFreetype2Properties,GetTextGDIPlusProperties,GetTransitionDuration,GetTransitionList,GetTransitionPosition,GetVersion,GetVideoInfo,GetVolume,ListOutputs,ListProfiles,ListSceneCollections,MoveSourceFilter,OpenProjector,PauseRecording,RemoveFilterFromSource,RemoveSceneTransitionOverride,ReorderSceneItems,ReorderSourceFilter,ResetSceneItem,ResumeRecording,SaveReplayBuffer,SaveStreamSettings,SendCaptions,SetAudioMonitorType,SetBrowserSourceProperties,SetCurrentProfile,SetCurrentScene,SetCurrentSceneCollection,SetCurrentTransition,SetFilenameFormatting,SetHeartbeat,SetMute,SetPreviewScene,SetRecordingFolder,SetSceneItemCrop,SetSceneItemPosition,SetSceneItemProperties,SetSceneItemRender,SetSceneItemTransform,SetSceneTransitionOverride,SetSourceFilterSettings,SetSourceFilterVisibility,SetSourceName,SetSourceRender,SetSourceSettings,SetStreamSettings,SetSyncOffset,SetTextFreetype2Properties,SetTextGDIPlusProperties,SetTransitionDuration,SetVolume,StartOutput,StartRecording,StartReplayBuffer,StartStopRecording,StartStopReplayBuffer,StartStopStreaming,StartStreaming,StopOutput,StopRecording,StopReplayBuffer,StopStreaming,TakeSourceScreenshot,ToggleMute,ToggleStudioMode,TransitionToProgram","message-id":"5","obs-studio-version":"25.0.4","obs-websocket-version":"4.8.0","status":"ok","supported-image-export-formats":"bmp,jpeg,jpg,pbm,pgm,png,ppm,xbm,xpm","version":1.1,"availableRequests":"AddFilterToSource,Authenticate,BroadcastCustomMessage,DeleteSceneItem,DisableStudioMode,DuplicateSceneItem,EnableStudioMode,GetAudioMonitorType,GetAuthRequired,GetBrowserSourceProperties,GetCurrentProfile,GetCurrentScene,GetCurrentSceneCollection,GetCurrentTransition,GetFilenameFormatting,GetMute,GetOutputInfo,GetPreviewScene,GetRecordingFolder,GetSceneItemProperties,GetSceneList,GetSceneTransitionOverride,GetSourceFilterInfo,GetSourceFilters,GetSourceSettings,GetSourcesList,GetSourceTypesList,GetSpecialSources,GetStats,GetStreamingStatus,GetStreamSettings,GetStudioModeStatus,GetSyncOffset,GetTextFreetype2Properties,GetTextGDIPlusProperties,GetTransitionDuration,GetTransitionList,GetTransitionPosition,GetVersion,GetVideoInfo,GetVolume,ListOutputs,ListProfiles,ListSceneCollections,MoveSourceFilter,OpenProjector,PauseRecording,RemoveFilterFromSource,RemoveSceneTransitionOverride,ReorderSceneItems,ReorderSourceFilter,ResetSceneItem,ResumeRecording,SaveReplayBuffer,SaveStreamSettings,SendCaptions,SetAudioMonitorType,SetBrowserSourceProperties,SetCurrentProfile,SetCurrentScene,SetCurrentSceneCollection,SetCurrentTransition,SetFilenameFormatting,SetHeartbeat,SetMute,SetPreviewScene,SetRecordingFolder,SetSceneItemCrop,SetSceneItemPosition,SetSceneItemProperties,SetSceneItemRender,SetSceneItemTransform,SetSceneTransitionOverride,SetSourceFilterSettings,SetSourceFilterVisibility,SetSourceName,SetSourceRender,SetSourceSettings,SetStreamSettings,SetSyncOffset,SetTextFreetype2Properties,SetTextGDIPlusProperties,SetTransitionDuration,SetVolume,StartOutput,StartRecording,StartReplayBuffer,StartStopRecording,StartStopReplayBuffer,StartStopStreaming,StartStreaming,StopOutput,StopRecording,StopReplayBuffer,StopStreaming,TakeSourceScreenshot,ToggleMute,ToggleStudioMode,TransitionToProgram","messageId":"5","obsStudioVersion":"25.0.4","obsWebsocketVersion":"4.8.0","supportedImageExportFormats":"bmp,jpeg,jpg,pbm,pgm,png,ppm,xbm,xpm"}
@tt2468
Copy link
Member

tt2468 commented Aug 7, 2020

CreateScene is currently unreleased and not in v4.8.0. You need to use our nightly build: https://dev.azure.com/Palakis/obs-websocket/_build/results?buildId=1340&view=artifacts&type=publishedArtifacts

@tt2468 tt2468 closed this as completed Aug 7, 2020
@BarryCarlyon
Copy link
Author

Gotcha.

Some of the new stuff is tagged as "not in yet" but this was, hence the confusion!

Ta!

@tt2468
Copy link
Member

tt2468 commented Aug 7, 2020

I believe they are tagged as v4.9.0 but yeah

@ruanorz
Copy link

ruanorz commented Aug 13, 2020

CreateScene is currently unreleased and not in v4.8.0. You need to use our nightly build: https://dev.azure.com/Palakis/obs-websocket/_build/results?buildId=1340&view=artifacts&type=publishedArtifacts

I have downloaded this version and "CreateScene" appear in the list of 'available-requests' when i do the GetVersion request, but it still saying to me "module 'obswebsocket.requests' has no attribute 'CreateScene'"

any idea? Thank you!

@tt2468
Copy link
Member

tt2468 commented Aug 13, 2020

Because obs-websocket-py needs manual updates for new requests, and is therefore outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants