Grasshopper

generative modeling for Rhino

Suryansh Chandra
Suryansh Chandra
  • Male
  • London
  • United Kingdom
Share on Facebook
Share Twitter

Suryansh Chandra's Friends

  • HeeDong Im
  • Matthew Richardson
  • Nahed Jawad
  • Sevinj Keyaniyan
  • Abhi Bhatt
  • Erick Vásquez
  • Khizer Ishtiaq
  • Riyad Joucka
  • BrionyP
  • OREN
  • elif erdine
  • Zayad Motlib
  • RWNB
  • VICTOR ORIVE
  • Tushar Sharma

Suryansh Chandra's Groups

Suryansh Chandra's Discussions

Finding the number of inputs in a scripting component
7 Replies

Started this discussion. Last reply by David Rutten Dec 24, 2011.

Referenced Assemblies in Multiple Components
1 Reply

Started this discussion. Last reply by David Rutten Dec 8, 2011.

Event Raised at Component Preview Toggle?
5 Replies

Started this discussion. Last reply by Suryansh Chandra Nov 7, 2011.

 

Suryansh Chandra's Page

Latest Activity

Profile Icon
David Rutten replied to Suryansh Chandra's discussion 'Finding the number of inputs in a scripting component'
I'm not sure when. My first order of business is to create a database of compiled scripts, so that the same source only ever compiles once. Then I'll start thinking about the global referenced assemblies. -- David…
Dec 24, 2011
Profile Icon
Suryansh Chandra replied to Suryansh Chandra's discussion 'Finding the number of inputs in a scripting component'
Cool. Will just go ahead and compile a component then. By the way, just wondering if the Referenced Assembly Manager we discussed here would be in a release soon? I checked, the local resolver doesn't work very reliably.. sometimes it…
Dec 24, 2011
Profile Icon
David Rutten replied to Suryansh Chandra's discussion 'Finding the number of inputs in a scripting component'
It does seem to be impossible via reflection as well. I can get at the names of the parameters, but not the values. I think a compiled component is your best bet here. -- David Rutten david@mcneel.com Poprad, Slovakia
Dec 24, 2011
Profile Icon
Suryansh Chandra replied to Suryansh Chandra's discussion 'Finding the number of inputs in a scripting component'
Well, the intention is to be able to get to the incoming data without using the RunScript arguments because the number of arguments change very often, and there's several of them.   So in short, not having to rewrite the code every time a…
Dec 24, 2011
Profile Icon
David Rutten replied to Suryansh Chandra's discussion 'Finding the number of inputs in a scripting component'
You can't. IGH_DataAccess is only available as a parameter to the SolveInstance function, it's not a member of the component class or any other class. Since you can't get into the scope of SolveInstance(), you can never reach the…
Dec 22, 2011
Profile Icon
Suryansh Chandra replied to Suryansh Chandra's discussion 'Finding the number of inputs in a scripting component'
Thanks David. That worked. But I'm not able to figure out how do I get to IGH_DataAccess.GetData() from within RunScript to automatically collect data? 
Dec 22, 2011
Profile Icon
Profile Icon
David Rutten replied to Suryansh Chandra's discussion 'Finding the number of inputs in a scripting component'
The owner field represents the actual Script component itself. You'll need to cast it to IGH_Component (or GH_Component) first though. DirectCast(owner, IGH_Component).Params.blahblahblah -- David Rutten david@mcneel.com Poprad, Slovakia
Dec 15, 2011
Profile Icon

Finding the number of inputs in a scripting component

Is it possible to find the number of inputs a script component has from within the component itself? Access to Me.Params is not allowed within script_instance. Ideally, if I could get to using Me.Params.Input.Count it would be very useful. I'm trying to write something that collects data from a lot of other components (lists and single items), flattens all incoming data streams to remove tree depth, and then rebuilds a single tree assigning a new path to every input stream. And I need this to…See More
Discussion posted by Suryansh Chandra Dec 15, 2011
Profile Icon
Suryansh Chandra replied to David Rutten's discussion 'A happy birthday to Rear Admiral Grace Hopper.'
Hahaha.. very cool and nerdy indeed.
Dec 9, 2011
Profile Icon
David Rutten replied to Suryansh Chandra's discussion 'Referenced Assemblies in Multiple Components'
"- Make the assembly paths relative instead of absolute? Maybe only optionally?" This should probably happen by default. If a dll cannot be found in the absolute location, the relative resolver should kick in. "- Have a…
Dec 8, 2011
Profile Icon

Referenced Assemblies in Multiple Components

Hi All, I have a single DLL referenced into multiple scripting components (about 10-12 of them). The only problem is every time the file needs to be opened on another computer, the reference needs to be added to all the components again. I'm guessing that if I keep the absolutely path identical across computers, it should be the same -- but it's sometimes too cumbersome to create the entire directory structure again on another computer. There's a few ways this could be solved, I'm unsure which…See More
Discussion posted by Suryansh Chandra Dec 8, 2011
Profile Icon
Profile Icon
Suryansh Chandra replied to David Rutten's discussion 'Grasshopper 0.8.0060 available for download'
Erm.. so they're happy random points..!   The ZUI is certainly a massive improvement over the popup window.. though if you're planning on implementing something better for fxn, may I also suggest consider implementing it for the…
Nov 24, 2011
Profile Icon
Steven Hall commented on Suryansh Chandra's video
Hello,   Would the custom component for numbering the parts be available for download?I often have people wanting to number CNC'ed parts. Trouble is the outline fonts usually take as much time to cut as the parts.
Nov 15, 2011
Profile Icon

Profile Information

Suryansh Chandra's Videos

  • Add Videos
  • View All

Comment Wall (1 comment)

You need to be a member of Grasshopper to add comments!

Join Grasshopper

At 11:41am on October 26, 2009, steffen impgaard pedersensteffen impgaard pedersen said…
Hi
I am interested in your project The lightbox pavilion. Because i am working on a school project with some of the same principles in physical model. I have seen your youtube movie and been trying to build it in grasshoppers but i am a grass rookie and haven't been able to. How did you make it?

Kind regards
steffen impgaard
 
 
 

Translate

Search Grasshopper

Members

  • Jitendra V. Patel
  • Piotr
  • giorgio gurioli
  • Katarzyna Bogumił
  • peter fotiadis
  • Michael Pryor
  • Landscape
  • Nicos.a
  • Brian Harms
  • El Ger
  • jonah hawk
  • Xiaoming

Photos

  • Add Photos
  • View All

© 2012   Created by Scott Davidson.   Powered by .

Badges  |  Report an Issue  |  Terms of Service