Creating new geo with detail attrs

   1867   2   2
User Avatar
Member
13 posts
Joined: Nov. 2015
Offline
Hi all,

Hello all!
1st post, H16 is where I begin


I am trying to create an object starting with a grid but I want to have the width/height of the grid read from a detail attribute.

In the top node (grid) those attributes don't exist and if I create them later I can't pass them back upstream.


How do I go about this?

Down the line I would like to duplicate that object with varied properties.



Any clues much appreciated!

Cheers,
Pete.
User Avatar
Member
1743 posts
Joined: March 2012
Offline
You can put a couple expressions in the Size parameter that read from a detail attribute on a different piece of geometry, but it can't read from a detail attribute on geometry that doesn't exist yet. You can reference a “width” detail attribute on some geometry like

detail("../other_node","width",0)

You can reference a “width” parameter on some other node like

ch("../other_node/width")
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
User Avatar
Member
13 posts
Joined: Nov. 2015
Offline
Ok awesome!

That's kind of where I arrived - so I would have a dummy duplicate object to reference parameters from and then if I want I would merge any attrs back into the main branch?

How do I reference a node's own parameter? is it ch(“./width”)?




Cheers!


P.
  • Quick Links