Hide/compile Dynamo scripts from end users?

#22

Building on Marcel’s idea, you could try this:

Do all of your coding in a Python node instead of using nodes directly. Or at least the important parts of the graph.

Store the Python code as a string on a website (access from multiple locations) or in a text file (local use only) placed on part of a local server which requires additional credentials to access.

Place a single Python from string node off the read file or web request node, and use some means of inputting the credentials to access the file/site.

EDIT:
If any of the bad monkey’s, or other powerhouse package managers ever do this with their work I will cry every day for the rest of my life.

2 Likes

#23

PyRevit can possibly do something similar, I could have quickly seen that on YouTube some months ago, I will try to check in which of the videos it would be:

Here are some good resources to learn Dynamo:

These links are related to nodes documentation:

These links are related to DesignScript:

1 Like

#24

I, for one, won’t. Dynamo is about sharing, not about locking folks out. 'Nuff said.

11 Likes

#25

I tought i’d seen a post about a repository for working dynamo scripts…:slight_smile:
But the search isn’t helping me

Marcel

0 Likes

#26

Something like this?
https://dynamonodes.com/category/workflows/

0 Likes

#27

@Yna_Db

actually…no, it was on the forum
seen it on the Dutch Dynamo User Group aswell, the trello site
Marcel

0 Likes

#28

I think he is referring to a website that would allow you to run the actual .dyn without having to recreate it from a forum or ask someone to send it to you.

0 Likes

#29

nooo…

The trello site is about sharing.

Marcel

0 Likes

#30

DynaWeb, maybe?


Edit: late additions to this thread:

1 Like

#31

Yes kinda like that. I haven’t had much/any time to test it yet, though I have installed the package.

0 Likes

#32

OK, but you probably won’t run any program from that site, or will you?

0 Likes

#33

@Yna_Db

Yeah…sure i will

I got to know them in person, good guys…

Marcel

0 Likes

#34

This site?

The more I learn from you guys the more I feel like I need to move…

Edit:
Link won’t host right on my phone. Hopefully you guys can see it.

0 Likes

#35

Thought it was called DDUG…
Anyways, the question was or here on the forum, or on LinkedIn

new question…
would a website like that do any good…in general…
For the project i’m working on i guess yes, all scripts up to date and running on all computers for all team members…

Marcel

0 Likes

#36

Yes, here it is, we can even see you:

2 Likes

#38

Where is Conrad

0 Likes

#39

ok time for a cleanup, way to cozy this

0 Likes

#40

Here is a way to share Dynamo generated geometry without having to share code :slight_smile:
Irrelevant to Revit workflows though.

Geometry is converted to serialized binary stream data using Geometry.SerializeAsSAB and saved to an external file.

Generated geometry could be shared without having to share code.
For example, a designer could share a pattern (with no flexible parameters) without having to share the code that generates it.
This could potentially be incorporated into a workflow that generates Revit elements.

Code for this pattern had been posted here. Hiding nothing

5 Likes

#41

@Vikram_Subbaiah

Did this with my apprentice…mesmerized and hooked for he rest of her life she is.
Had to uninstall packages tho…to make it work

In short and to round up…sharing this made someone happy :slight_smile:

Thnx vikram

1 Like

#42

Except for the few All Elements of … nodes, most other nodes either have code equivalents or alternatives
It is very much possible to have your definitions completely in a code block. I do so most of the time.

However, it’s better done right from the start, at regular intervals, not just by ‘Node to Code’ at the end.

2 Likes