Repository navigation
Integration with Clip Studio Paint - #45
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This Pull Request implements integration with the animation production software “Clip Studio Paint (CSP)” by Celsys as follows: When you execute the
[Apply Timesheet Information to Digital Timesheet]command in CSP, XDTS Viewer will launch, displaying the current timeline from CSP in timesheet format—allowing you to add memos.[Background Information: Changes in CSP]
Main Menu > [Animation] > [Timeline] > [Apply Timesheet Information to Digital Timesheet]command,which previously only supported integration with Toei Animation Digital Exposure Sheet, will now also support integration with XDTS Viewer.
When you execute the
[Apply Timesheet Information to Digital Timesheet]command, CSP exports the current project's timeline informationto
<Temporary Folder>\ExchangeDigitalTimeSheet\animation.xdts.<Temporary Folder>isC:\Users\username\AppData\Local\TempNext, the
[Digital Timesheet executable]specified by the user is launched with<Temporary Folder>\ExchangeDigitalTimeSheet\animation.xdtsas an argument.[Features Implemented in Accordance with the Above Specifications]
Special behavior for CSP integration has been implemented as described below, only when XDTS Viewer is launched with
<Temporary Folder>\ExchangeDigitalTimeSheet\animation.xdtsas an argument:In case one or more XDTS files are already opened:
The user can select between the above options.
animation.xdts, and the user is directed to view that file.animation.xdts, and the user is directed to view that file.animation.xdtsis copied to that path without any confirmation, and the user is directed to view the newly created file.If no XDTS file is opened (upon initial launch), only option B above will be available.
NOTICE
Once a sync file has been specified, the “Link to CSP” flag becomes active. If the XDTS Viewer is called again from CSP with
animation.xdtsas an argument, the XDTS file open in the linked window will be automatically updated with the contents ofanimation.xdts.While a window is linked, its title bar shows “[Linked with Clip Studio Paint]”, and an “Unlink from CSP” command becomes available in its menu, allowing the user to manually break the link at any time.
However, even if there is a linked XDTS Viewer window, if the contents of the
animation.xdtsfile you are about to replace differ significantly from the contents of the currently open timesheet (e.g., a difference of two or more layers, or a duration difference of 6 frames or more), a confirmation dialog will appear, allowing you to choose whether to continue updating the linked file, specify a different file, or cancel and leave the current link unchanged.Clip Studio Paintとの連携機能
このPull Requestは、セルシス社のアニメーション制作ソフト「Clip Studio Paint (CSP)」の
[デジタルタイムシートにタイムシート情報を適用]コマンドを実行したときにXDTS Viewerが立ち上がり、CSPで現在編集中のタイムラインがタイムシートの形式で表示される(そしてメモが描ける)機能を実現します。【背景:CSP側の更新内容について】
- メインメニュー [アニメーション] > [タイムライン] > [デジタルタイムシートにタイムシート情報を適用] コマンドが、 従来は[東映デジタルタイムシート](https://www.clipstudio.net/ja/dl/toeianimation/)のみとの連携を提供していましたが、新たにXDTS Viewerとの連携が可能になります。[デジタルタイムシートにタイムシート情報を適用]コマンドを実行すると、CSPは現在編集中のプロジェクトのタイムライン情報を<一時フォルダ>\ExchangeDigitalTimeSheet\animation.xdtsに書き出します。
※
<一時フォルダ>はWindowsの場合、C:\Users\username\AppData\Local\Temp次に、ユーザーが指定した[デジタルタイムシートの実行ファイル]に
<一時フォルダ>\ExchangeDigitalTimeSheet\animation.xdtsを引数としてプロセス起動を行います。【上記の仕様に合わせ実装された機能】
<一時フォルダ>\ExchangeDigitalTimeSheet\animation.xdtsを引数としてXDTS Viewerが起動した場合のみ、下記の通りCSP連携のための特殊な挙動を実装しました。既に開いているXDTSファイルがある場合
を選択できるようにし、
animation.xdtsの内容で上書きして良いかどうかの確認ダイアログが開き、ユーザーの承認後、既存のXDTSファイルがanimation.xdtsの内容で上書きされ、そのファイルを閲覧するようにします。animation.xdtsの内容で上書きされ、そのファイルを閲覧するようにします。animation.xdtsを指定したパスにコピーし、そのファイルを閲覧するようにします。XDTSが開かれていない(最初の起動)の場合、上記Bのみが選択できるようにします。
注意
一度同期するファイルが指定された以降は「CSPとのリンク」のフラグが有効になり、CSPから
animation.xdtsを引数としてXDTS Viewerが再度呼ばれた場合は、紐づいたウィンドウで開いているxdtsファイルをanimation.xdtsの内容で自動更新するようにします。ウィンドウがCSPとリンクされている間は、タイトルバーに
[Clip Studio Paint とリンク中]と表示され、ハンバーガーメニュー内に、手動でリンクを切断できるCSPとのリンクを解除コマンドが追加されます。ただし、「CSPとのリンク」状態のXDTS Viewerウィンドウがある状態でも、これから差し替えようとする
animation.xdtsの内容が開いている既存のタイムシートの内容と大きく異なる(レイヤー数が2つ以上異なる、又はdurationが6フレーム以上異なる)場合には確認ダイアログを表示し、現在のリンクを継続してファイルを更新するか/別のファイルを指定するか/キャンセル(リンク状態は維持)するかを選択できるようにします。