Git Product home page Git Product logo

Comments (3)

dan-rigdon-bel avatar dan-rigdon-bel commented on August 23, 2024

AFAIK, 2. is the intended behavior. I defer to @piac as he might know which commit changed this behavior.

from rhinocommontemplatepackage.

piac avatar piac commented on August 23, 2024

Hi @maxsu

I am on vacation but decided to answer your questions quickly. This practice is probably a suggestion due to the command registration policy in Rhino, which @golsby knows more about.

In a few words, if your plug-in loads at startup (not recommended), Rhino will inspect the command names and register them every time, provided that the location of the plug-in does not change. If your plug-in is loaded on demand (default), then command names are cached from the previous command loading. Upon loading, they are updated. This means that the old, changed command names will autocomplete at first, but then might not work when later invoked and finally will be refreshed when the plug-in is finally loaded.

Templates won't do anything regarding this behavior. This is behavior derived from Rhino code.

from rhinocommontemplatepackage.

maxsu avatar maxsu commented on August 23, 2024

Sorry I interrupted your vacation!

I confirmed that the mistake was mine: After running the debug build and loading rhino, I 1) tested that the old command did not work - this loaded the plugin and refreshed the cache, so 2) the new command appeared to work. When I skip the first step, the command is unavailable.

This is relevant to the tutorial - loading the plugin is sufficient. Whether this can (or should) be done from the template is defintiely another issue. Thanks for the info!

from rhinocommontemplatepackage.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.