Random rotation with selected items rotating in the other direction

Continuing the discussion from Random rotation of several objects:

Random Rotation v2.gh (231.1 KB)

I have a field of objects which rotate randomly as per the link above, it works really well.

There are a couple of things I’m struggling with - any help would be much appreciated!

  1. Is there a way to select individual breps (new list?) which will make them rotate in the opposite direction to the other items? i.e. I’d like to select them multiple object, slide the values and certain breps go in the other direction.

  2. Where the items rotate 360 degrees, they end with a random seed position. Is it possible to slide through 360 degrees but as you near the extent of the slider value the items are seated back to their initial position?

  3. I have a group of randomly coloured hatches which I have to explode to create surfaces, they’re all on the same layer but all have a unique display colour. The output is baked as a homogenous group to a single layer and don’t retain the display colour unique to them - am I able to work with the display colours to bake the final positions with the same set of colours?

  4. I’m originally importing PDF text from illustrator. I can import a range of editable text, but I can’t work with the individual text items within grasshopper to get the effect - is it possible to do all of the above with individual text items?

Thank you for all your help!

Cheers,

Andy

Few things / house-keeping:

  1. You’ve posted in the wrong section, grashopper developer is if you’re coding in C#/VB/Python
  2. Internalize your data and upload the file again, without your input data, we can’t really offer solutions, as some solutions may be dataTree dependent.

(In your screenshot the wires are solid, I highly doubt your input is a single item, I advise you to turn on fancy wires.)

Hi Victor,

Thanks for the advice, noted.

I’ve uploaded the revised file with internalised data.

this makes the rotation negative for the items with index in the Panel (uses the super useful “sift index” component from the plugin Putterfish)

the graph mapper component let you visually remap the rotation values as you like, don’t know if this is exactly what you are loking for…

yes, you can extract those color info from referenced geometries
I use Human or Elefront plugins to do that, there might be more plugins and several different ways to get to the same result (but they lose those properties when they get internalized, so you won’t see them in the attached file: you’ll need to manually draw and give color to some curves in Rhino then reference them in GH)
Random Rotation v2_Re.gh (236.9 KB)

I’m very interested in knowing more about this point,
I know you can reference text as curves (explode the text), but then all the letters/numbers composed by more than one curve are separate objects in GH… but for sure there might be better ways than converting text to curves

1 Like

Thanks inno!

That’s really helpful. It’s 00:20 here and I’m knee deep in some other stuff on another platform - I need to go to bed :smiley:

I’ll digest what you’ve posted this week and come back to you.

Thanks again for your input.

Cheers,

Andy

1 Like