Python script fail, look in the console for now error despite exactly correct setup tried 50 times
wooper a commencé cette discussion dans Help and Tips

I was trying out the blender template from the video tutorial, and every time I got to the run script part, it failed. I tried redownloading the script and model, double checking that I grouped the parts in the model, had done every step, tried selecting the parts individually, etc...

I saw other forum posts that said you cant run the script more than once etc, so I redownloaded, tried a different model, everything.

This is the error message in the system console of Blender.

Read new prefs: C:UsersMeAppDataRoamingBlender FoundationBlender2.78configuserpref.blend
found bundled python: C😛rogram FilesBlender FoundationBlender2.78python
read blend: C:UsersMeDownloadsBlender LiteLite 1.8.9.blend
Color management: display "sRGB / BT.709" used by scene not found, setting to default ("sRGB").
Color management: scene view "sRGB EOTF" not found, setting default "Default".
Color management: sequencer colorspace "sRGB EOTF" not found, will use default instead.
Writing node id='Part_1', name='Part_2441.1'
Writing node id='Part_2', name='Part_30027.2'
Writing node id='Part_3', name='Part_30028.3'
Writing node id='Part_4', name='Part_30027.4'
Writing node id='Part_5', name='Part_30028.5'
Writing node id='Part_6', name='Part_30027.6'
Writing node id='Part_7', name='Part_30028.7'
Writing node id='Part_8', name='Part_30027.8'
Writing node id='Part_9', name='Part_30028.9'
Writing node id='Part_10', name='Part_3022.10'
Writing node id='Part_11', name='Part_3022.11'
Writing node id='Part_12', name='Part_60212.12'
Writing node id='Part_13', name='Part_60212.13'
Writing node id='Part_14', name='Part_3622.14'
Writing node id='Part_15', name='Part_3622.15'
Writing node id='Part_16', name='Part_3023.16'
Writing node id='Part_17', name='Part_3023.17'
Writing node id='Part_18', name='Part_3023.18'
Writing node id='Part_19', name='Part_4865v2.19'
Writing node id='Part_20', name='Part_3710.20'
Writing node id='Part_21', name='Part_44728.21'
Writing node id='Part_22', name='Part_44728.22'
Writing node id='Part_23', name='Part_3023.23'
Writing node id='Part_24', name='Part_3069.24'
Writing node id='Part_25', name='Part_2412.25'
Writing node id='Part_26', name='Part_54200.26'
Writing node id='Part_27', name='Part_54200.27'
Writing node id='Part_28', name='Part_4073.28'
Writing node id='Part_29', name='Part_3020.29'
Writing node id='Part_30', name='Part_3822.30'
Writing node id='Part_31', name='Part_3821.31'
Writing node id='Part_32', name='Part_4073.32'
Writing node id='Part_33', name='Part_57783.33'
Writing node id='Part_34', name='Part_60481.34'
Writing node id='Part_35', name='Part_60481.35'
Writing node id='Part_36', name='Part_45677.36'
Writing node id='Part_37', name='Part_3023.37'
Writing node id='Part_38', name='Part_3829.38'
Writing node id='Part_39', name='Part_3828.39'
Writing node id='Part_40', name='Part_3626bb.40'
Writing node id='Part_41', name='Part_62810.41'
Writing node id='Part_42', name='Part_4449.42'
Writing node id='Part_43', name='Part_3816.43'
Writing node id='Part_44', name='Part_3817.44'
Writing node id='Part_45', name='Part_3815.45'
Writing node id='Part_46', name='Part_3818v2.46'
Writing node id='Part_47', name='Part_3820v2.47'
Writing node id='Part_48', name='Part_3819v2.48'
Writing node id='Part_49', name='Part_3820v2.49'
Writing node id='Part_50', name='Part_973aq.50'
Traceback (most recent call last):
File "C:UsersMeDownloadsBlender LiteLite 1.8.9.blendreplace.py", line 15, in <module>
TypeError: bpy_struct: item.attr = val: Object.parent ID type does not support assignment to its self
Error: Python script fail, look in the console for now...

Traceback (most recent call last):
File "C:UsersMeDownloadsBlender LiteLite 1.8.9.blendreplace.py", line 15, in <module>
TypeError: bpy_struct: item.attr = val: Object.parent ID type does not support assignment to its self
Error: Python script fail, look in the console for now...

I have the newest version of Blender, windows 10, models from Mecabricks downloaded yesterday / today.

I have no more things to try. I dont quite understand why this script is not more robust.

2 réponses · Page 1 sur 1
Avatar de Scrubs
Administrateur

I added this section in the product description a while ago:
http://www.mecabricks.com/en/shop/product/2

Important Update
The scene set up has been simplified. After importing the collada file, you do not need to add the pieces to the empty object "Model". Ensure that all the imported parts are selected and click "Run Script". It will do the parenting task automatically.

On the contrary of what is said in the video tutorial, do not scale the model. Move the camera further away instead.

Just after importing the collada file, click on "Run Script". Do not click or do anything else in between.

Ahhhhh thankyou. It works great now even if my laptop is too weak to handle quick rendering. Please consider adding a pinned comment or annotation to the youtube video and editing the template post so people dont screw it up like I did 😉

Anyway, Mecabricks is amazing, I just got annoyed because I have psychological issues from child abuse ;/

Publicité
2 participants
Avatar de Scrubs

LEGO, le logo LEGO, la minifigurine et les configurations des briques et tenons sont des marques déposées de LEGO Group of Companies. ©2024 The LEGO Group.

Mecabricks, le logo Mecabricks et tout le contenu non couvert par les droits d'auteur du groupe LEGO sont, sauf indication contraire, ©2011-2024 Mecabricks.