Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Receive Script: 2 New Functions #114

Closed
bimgeek opened this issue Sep 28, 2022 · 2 comments · Fixed by #117
Closed

✨ Receive Script: 2 New Functions #114

bimgeek opened this issue Sep 28, 2022 · 2 comments · Fixed by #117
Assignees
Labels
community Powered by the speckel community! enhancement New feature or request

Comments

@bimgeek
Copy link

bimgeek commented Sep 28, 2022

Description

There is a function called Receive Script in the Blender connector. But currently it only operates on the received geometry. So all the data contained in the Speckle objects are lost. Considering users can create workflows using that “Data”, 2️⃣ more functions similar to current execute function is needed👇:

  1. execute_for_object(scene, object, base)
    • With this method, desired operation can be performed after each object is received and base object data will be referenced too.
  2. execute_for_all(scene, objects)
    • With this method, the desired operation can be performed after all objects are received.

Screenshots

image

@JR-Morgan feel free to add anything you want.

@bimgeek bimgeek added enhancement New feature or request community Powered by the speckel community! labels Sep 28, 2022
@tsvilans
Copy link
Contributor

Hi @bimgeek

Originally, the script injection operated directly on the base object being received from the stream in order to have access to the full Speckle object and properties. I see now that this is first run through the normal base_to_native conversion, which means the function can therefore only operate on the resulting Blender object, as you describe.

I am not sure about the reason for the change, however perhaps the order of conversion (script injection before native conversion) could be changed to solve this.

@bimgeek
Copy link
Author

bimgeek commented Sep 29, 2022

Hey @tsvilans 👋,

This issue is related to this thread on community. A user wants to add some parameters from BIM model as custom properties in Blender.

however perhaps the order of conversion (script injection before native conversion) could be changed to solve this.

Thanks for your suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Powered by the speckel community! enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants