arcsikex / cascadeur_bridge

This Blender addon is aimed to help you integrate Cascadeur into your workflow.
GNU General Public License v3.0
277 stars 12 forks source link

Opening scene failed #31

Closed CavalierSri closed 5 months ago

CavalierSri commented 11 months ago

Describe the bug When I click on import the scene, the stunt software puts an error message, it says that the opening of the scene failed, and that the extension in the Blender file is invalid the file is commmands.externals.temp -export, I tried to see the file but there was not that file and it's the same when I want to export.

Steps to reproduce the behavior:

  1. Downlaod the add-on
  2. Install the add-on in the blender
  3. Restart Blender without being an administrator

Environment:

Additional context Add any other context about the problem here.

arcsikex commented 11 months ago

Hi @CavalierSri,

  1. What version of Cascadeur are you using? (You can check it on the splash screen when clicking on the home icon)

  2. Are the necessery files installed correctly to Cascadeur? These python scripts should be in the commands\externals folder:

    image
  3. Do you have a custom path set for your scripts? (at ...\Cascadeur\resources\settings.ini)

Sory for the questions, but it's hard to say what causes this issue.

CavalierSri commented 11 months ago

Hello arcsikex I will answer your questions, I use version 2022.3.1 on Cascadeur, the files you show me on your screen I don't have them. But I do have a defined path for a cascadeur but it's not a custom path.

image

arcsikex commented 11 months ago

Did you do these steps when you installed the addon?

  1. Set the Cascadeur executable path
  2. Click the Install Requirements button (If you get an error try to restart Blender as an Admin)

With the install requirements button those script files are copied into the cascadeur commands folder which are needed for the addon to work.

CavalierSri commented 11 months ago

There is a problem, I download Blender with steam and I can't restart Blender as an Admin.

arcsikex commented 11 months ago

I see, you can do it manually. In the folder of the addon (by default C:\Users\USERNAME\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\csc_bridge) you will find a csc_files folder. Inside that copy the whole "externals" folder. And paste it to CASCADEUR PATH\resources\scripts\python\commands. (So the path of the command files should be '\commands\externals\temp_exporter.py'). Then restart Cascadeur if it's already running.

CavalierSri commented 11 months ago

I followed your instructions but it didn't work.

passivedragon commented 9 months ago

I'm on linux and I am similarly getting (in cascadeur):

Start loading of 

Opening scene failed! Invalid extension in file: 

I have not removed any text from this. I only just installed the newest version of the Cascadeur_bridge plugin, as well as cascadeur. I haven't had any problems with installing the blender requirements, from what I can tell. "All files copied successfully" seems to be the only thing logged.

My cascadeur version is: 2023.1.1 Blender: 3.6.4 (steam)

preppy2751 commented 8 months ago

Hello ! :) I have the same issue,

Capture d'écran 2023-10-21 223710

I have set the executable path, and Blender can open cascadeur

Capture d'écran 2023-10-21 223105

I also have the mentionned files :

Capture d'écran 2023-10-21 223203

aslo i don't know if relevant but ScriptDir=""

Capture d'écran 2023-10-21 223457
arcsikex commented 8 months ago

@preppy2751 What version of Cascadeur are you using? 1.0.1 will only work with Cascadeur 2023.2

image
preppy2751 commented 8 months ago

@arcsikex Thank you it worked after the update ! the only thing is that the rig is Enormous, but i guess i can deal with that

BastionNQS commented 2 months ago

Hello, I am getting this same error.

Blender = 4.1, Cascadeur = 2024.1 Pro, Bridge = 1.0.3, Model&Rig = Human Genator model (has a rigify rig.)

Error Details: 2024-04-21 07:25:38,322 Opening scene failed! Invalid extension in file: --run-script 2024-04-21 07:25:38,369 Start loading of commands.externals.temp_importer 2024-04-21 07:25:38,392 TRACE [C:\csc\src\common\csc_exception.cpp:9] CscException: Invalid extension in file: commands.externals.temp_importer

Notes: This is on Execution of "Export To Cascadeur" if Cascadeur is closed. It does open Cascadeur, but the scene is empty. If I press the button again, while Cascadeur is open it seems to transfer the model. However, when I go to Auto posing, I do not see a rig. Note: I am new to Cascadeur.

BastionNQS commented 2 months ago

So, it looks like I just need to hit Generate Rig twice. When I used it Cascadeur without the Add-on and did things manually, it seems that I only had to hit Generate Rig once.

There is another issue with mesh deform, but I wont add it to this thread.