• Login
sketchucation logo sketchucation
  • Login
⚠️ Attention | Having issues with Sketchucation Tools 5? Report Here

Any way through ruby to create a component collection

Scheduled Pinned Locked Moved Developers' Forum
4 Posts 3 Posters 232 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    DavidBoulder
    last edited by 13 Mar 2010, 22:32

    I have a component that needs a number of dynamic components. As it is now I just load those components when the script starts. But then it just gets cluttered in with all of these new definitions that get made as I change attributes. So I thought, maybe it is better that I just have this as a component collection. If necessary I can just make this collection as part of the install process for the plugin, but I was wondering if there is a way via the API to create this collection on the fly. I didn't see any API references for this, but I thought I would check.

    David

    --

    David Goldwasser
    OpenStudio Developer
    National Renewable Energy Laboratory

    1 Reply Last reply Reply Quote 0
    • D Offline
      driven
      last edited by 13 Mar 2010, 23:19

      Hi david

      I've been looking into using chrisglaseiersSceneMachineMac.rb or nSet.rb (if I can get it Mac'ified) or martins alternate API

      to manipulate different options within a single object, early days for me,

      I'm trying to bypass DC'c, but still might be worth a look for your needs....

      john

      learn from the mistakes of others, you may not live long enough to make them all yourself...

      1 Reply Last reply Reply Quote 0
      • C Offline
        chrisglasier
        last edited by 14 Mar 2010, 00:55

        @driven said:

        Hi david

        I've been looking into using chrisglaseiersSceneMachineMac.rb or nSet.rb (if I can get it Mac'ified) or martins alternate API

        to manipulate different options within a single object, early days for me,

        I'm trying to bypass DC'c, but still might be worth a look for your needs....

        john

        If you are going to try that you might as well have a go at the latest attempt to amalgamate and expand all of these. The expansion includes the ability to import names of components, layers and scenes from a model or make new for grouping into hierarchical sets going back up to the project itself. I am currently working on animation, but first I need to finish how to plug in new nsets into the main root nset (manifold). All is very much a work in progress. I leave odd explanations and notes in the notebook linked below.

        It would be best if you open it in a PC first, as although I have tried to follow the Mac compatibility guidelines as you know it has failed before. Anyway it's a possible grope forward!

        I agree about bypassing dc's ...

        Chris


        Extract into plugins folder WIP


        Test model

        With TBA interfaces we can analyse what is to be achieved so that IT can help with automation to achieve it.

        1 Reply Last reply Reply Quote 0
        • C Offline
          chrisglasier
          last edited by 14 Mar 2010, 04:26

          And, John, I think you said you have Macified cgScenes. I wonder if that version also works on PCs. Or do you think it should released as a Mac version?

          Oh and also you should note that cgScene start button was introduced because Macs run the script before loading the model. However nset doesn't rely on model data at the start but it is something you might like to add to the "no js after window.location" for callbacks I pointed to before.

          With TBA interfaces we can analyse what is to be achieved so that IT can help with automation to achieve it.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            4/4
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement