speckleworks / speckleblender Goto Github PK
View Code? Open in Web Editor NEWSpeckle for Blender Client
License: MIT License
Speckle for Blender Client
License: MIT License
Branch: 2.80
Docker version: 2.81.1
Console output:
Traceback (most recent call last):
File "C:\Users\908441\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons_contrib\bpy_speckle\operators\accounts.py", line 62, in execute
client.server = self.server
File "C:/org/blender/blender/release/scripts\modules\bpy_types.py", line 676, in getattribute
return super().getattribute(attr)
AttributeError: 'SpeckleAddAccount' object has no attribute 'server'
location: :-1
location: :-1
Steps to reproduce:
Install Blender from source
run cmd prompt
run commands
python -m ensurepip
python -m pip install pip --upgrade
python -m pip install speckle
from python/bin of blender
Place bpy_speckle under C:\Users......\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons_contrib\bpy_speckle
Change version of blender in init.py
Might be a bigger issue involving switching over to tessfaces completely for import / export. The vertex-UV relationship is funny and I can't be bothered right now.
Pressing Load Accounts
twice duplicates list entries. This should instead clear the list and re-add users from the user database.
To have a good, complete user experience when setting up Speckle (and its constituent components).
Got SpeckleBlender 2.79 installed, but could not create a stream
As a Software Developer,
I'd want to follow a tutorial
AND I want to be able to create or use sample data to push through Blender to SpeckleServer
So I can better understand the object lifecycle in Speckle
AND so I can collaborate with others in 3d
After getting a frontend and a backend running, wasn't sure where to go next. Plugin?
As a System Admin (IT),
I'd like to be able to follow a tutorial, and get an instance of Speckle up and running
So that I can provide the system to other real-time users
... or bake transforms into mesh data?
Review code and document properly.
I installed SpeckleBlender for Blender 2.82.
When I activate the addon, Blender says:
Modules Installed (bpy_speckle) from 'D:\\HTL\\Desktop\\bpy_speckle.zip' into 'C:\\Users\\HTL\\AppData\\Roaming\\Blender Foundation\\Blender\\2.82\\scripts\\addons'
Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\modules\addon_utils.py", line 351, in enable
mod = __import__(module_name)
File "C:\Users\HTL\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\bpy_speckle\__init__.py", line 53, in <module>
from speckle import SpeckleApiClient, SpeckleCache
ModuleNotFoundError: No module named 'speckle'
I have tried running Blender as administrator but no luck.
Python client is incomplete and a bit messy. Reduce to only necessary methods, make naming consistent, and simplify as much as possible.
Using Add Account
(logging in) adds a new user account entry to the database, even if it already exists. This should be forbidden.
Best solution would be to not flatten nested dictionaries by prepending parent key names, and instead actually just use nested dictionaries.
ID prop group filtering and access can be done like this:
import bpy, idprop
cube = bpy.data.objects['Cube']
d = cube.get('tommy') # d is also a IDPropertyGroup, since it is assigned as a dict
for i in d.items():
print(i)
if isinstance(i[1], idprop.types.IDPropertyGroup):
print(i[1].__class__)
Results in:
('this', 'that') <-- 'that' is a normal string
('numbers', 100) <-- 100 is a normal integer
('doodeedoo', <bpy id prop: owner="OBCube", name="doodeedoo", address=0x000001A6CFD9BF48>)
<class 'IDPropertyGroup'>
For anyone who is trying to play with SpeckleBlender ( Version 2.8)
If you failed to add your account and got an error message "Failed to connect to database." in Cache.py line 165
All what you have to do it to create a folder "SpeckleSettings" at this location:
C:\Users\YOUR_USER_NAME\AppData\Local\SpeckleSettings
Hi,
First of all. Thank you for all the work.
Just for record I noticed that units are not taken in account when you download objects. Steps to reproduce :
If you create a stream from Revit with units set to meters and upload objects then object have correct scale in blender (as blender default unit is also meter that sound logic).
I also noticed that length unit is correctly identified :
So it is just a matter of scaling the object but I don't know yet where in code this should be done.
Hi.
It appears I can login to the hestia server via a web browser but when I use the same credentials in the Blender (2.82) tab on Windows 10 I get the error message below.
On Linux a gcc error prevents the speckle module from being built. Is the addon known to work on Linux?
Cheers
Ryan
Error: Traceback (most recent call last):
File "C:\Users\ryan\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\bpy_speckle\operators\accounts.py", line 38, in execute
_add_account(client, cache, self.email, self.pwd, self.host, "Speckle Hestia")
File "C:\Users\ryan\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\bpy_speckle\functions.py", line 116, in _add_account
cache.write_account(host, host_name, email, authtoken)
File "C:\Users\ryan\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\modules\speckle\Cache.py", line 165, in write_account
raise Exception("Failed to connect to database.")
Exception: Failed to connect to database.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.