Git Product home page Git Product logo

speckleblender's People

Contributors

cyrilwaechter avatar daviddekoning avatar fraguada avatar teocomi avatar tsvilans avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

speckleblender's Issues

Can't add an account

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

Settings:
image

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

TODO: Fix UV export using tessfaces

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.

TODO: Code clean-up

  • Stream operators need to be updated.
  • Unnecessary operators need to be removed.
  • Extra scene Speckle settings need to be removed.
  • General tidying and removing messy parts.

Create a basic scenario that walks a user through getting SpeckleBlender working a Stream (with SpeckleServer)

Goal

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

Story 1

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?

Story 2

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

Fail to install SpeckleBlender for Blender 2.82

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.

TODO: Clean up SpeckleClient

Python client is incomplete and a bit messy. Reduce to only necessary methods, make naming consistent, and simplify as much as possible.

Custom Prop names have length limit

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'>

Problem with 'Add Account'

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

Units not taken in account when importing geometries

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 :

  1. Create a stream from Revit with length units set to millimeters and upload objects
  2. Download objects in blender -> objects are 1000x too big

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 :
Units
So it is just a matter of scaling the object but I don't know yet where in code this should be done.

Failure to connect

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.