Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4175

Create toolbar Button that references DocumentUserText

$
0
0

Hello,

via Grasshopper-Definition I can write a list of Rhino-Commands into a textfile. These commands differ from project to project and contain project-specific names and file paths, but the name of the textfile needs to be the same, so I can start it via a toolbar button I created that uses the -_ReadCommandFile command.

Now when working on several projects simultaneuosly I frequently hit my button while the command list isn’t updated - and all projects are completely mixed up and overwritten.

So my idea was to integrate the command list into the Rhino-File as DocumentUserTexts and the button should reference these. In the example I have two lists of commands and I would have two buttons: one calls CommandList1 and the second one calls CommandList2. (To keep it simple, there are just any commands in the example.)

How do I pass the content of the command lists into the toolbar buttons?

This would be an enormous improvement to the workflow!

DocUserText_ComandList.3dm (35.1 KB)

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4175

Latest Images

Trending Articles



Latest Images