Jump to content

Selecting multiple Objects in the same context from viewport in Python


Recommended Posts


I'm currently creating a digital asset which allows the user to create a house based on multiple curves (one for the foundation, one or more for the windows).

What I would like is to set the use of the curve later one (example: All curves which have an attribute call "type" which value is "window" will be used to create the windows, etc..)

So, I would like to know if there is a way to select in the viewport multiple curves (from the same geometry) and add an attribute, set his value?


Thank's in advance

Link to comment
Share on other sites

What you could try is using python create a merge node and an attribute node and link all the selected nodes to the merge node then the merge to the attribute and attribute to the asset.
when creating the attribute node you can use python to set the parameters values as needed, in this case to string"window"

Link to comment
Share on other sites

Sry for the late reply. After reading the docs, I came up with a similar idea. I'm still experiencing difficulties in allowing the user to select the curves, as all the curves are in same context and I didn't find any function which list the user selection. I thought of instead, getting the selection from the nodes selected in the network view, is it possible? 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...