Grasshopper

algorithmic modeling for Rhino

I am using 5 data recorders and I want to enable and disable record for all data recorders with one boolean input at once. How can it be done? 

Views: 1455

Replies to This Discussion

Hi,

use the attached C# snippet.

Attachments:

Hi, 

Thanks for replying. It resets the recorders. I want to control the record button not the reset.

Adding a private boolean to document the last state of the recorder will do the trick

private bool recState = true;

then you need to add something like:

if(pause)
{
dataDestroy.RecordData = !recState;
recState = dataDestroy.RecordData;
}

where pause is a button boolean. this will work for one recorder.

I will have to look into this when i get back to a computer.

Ta,

M

Ok Ignore my previous reply.

No need for a global bool.

Please refer to the attached. 

Best,

M

Attachments:

WORKED LIKE A CHARM.. Thanx :)

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service