Jump to content
Developer Wiki and Function Reference Links ×

Set attributes to obyects in selected classes


luk

Recommended Posts

Hi there

 

I hope I haven't overseen any similar topics in the forum, please give me a link if this has already been handled.

 

I'm new to marionette and I'm trying to do the following:

 

After importing a dxf in vectorworks I want certain objects to receive specific color and line weight attributes. The objects I want to modify are an a specific layer and are either red, green or blue - so far so good, I can use "Objs by Crit" for that.

 

But the objects are also in classes that contain the string "_ein" in their name. All other objects with the same attributes that are in other classes should not be affected by the script.

 

I created the network you can see in the picture, but it obviously isn't correct because the information about the class name has no effect on the outcome. Any suggestions?

(The "copy" node seems to be necessary because the "attribute" nodes don't allow selecting different transparency values for filling and line)

 

image.thumb.png.73bf14ba989c77c63a4ee4f0b65ac7fb.png

Link to comment

Hi Marissa

 

I've edited the network:

- Added the first two nodes you suggested. In an earlier try I had this:

image.thumb.png.1757cb57fd5a06c9daac43ca28edae33.png

Then as a part of the several attempts I made, I removed the first two nodes.

 

- The second edit I've done, is the adding of a second parallel part, which should give different, new attributes to objects that have the same starting attributes, but have a different class (the class name contains _aus , instead of _ein):

image.thumb.png.2a6cd911e714ebb9c4be85ed8deb324e.png

I hope it's clear...

 

Then 2 things about the node "Objs by Crit":

1- If I copy one from one drawing and paste it in another, it won't work. I have to edit the criteria because the primary color seems to change in different files... 

2- When I open the criteria configuration menu I have to set all criteria manually. The menu does not seem to remember which criteria had been set earlier.

 

Thank for helping me out

Luca

 

 

Import_Schleppkurven - Versand_181221.vwx

image.png

Edited by luk
Link to comment
  • Marionette Maven

@luk

I've attached a revised file with a network that I believe should keep you going in the right direction.

It makes a copy of the objects you're changing and groups them so that your original information stays the same and could be deleted later, mostly for debugging purposes on my end.

I will submit a bug to allow the Attributes node to have separate opacities for pen and fill, and I'll try to remember to post the node here once I've completed it so you won't have to wait until a service pack to use it. For now, I set the opacities using the Set Opacity node.

Feel free to ask any questions.

Screen Shot 2018-12-21 at 10.48.00 AM.png

Import_Schleppkurven - Versand_181221_MFarrell.vwx

Link to comment

wow, for the moment I'm just a bit to overwhelmed to be able to ask any questions...😄

Thanks for the moment, I'll take some time to study the network.

I'm about to shut down for this year so thanks a lot, I wish you happy holidays!

ciao

Luca

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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