Skip to main content

Posts

Showing posts with the label programming

Does the parameter exist?

I'm back after a while with a new article on Dynamo. This time I'll try to explain how to check if a list of parameters are available in the project. This can be used as starting point to QA a model against a pre-defined template. The idea is pretty simple: we need to extract all the parameters from the model and to do this we list all the elements of type "ParameterElement". You'll get the list of both shared and project paraemters in this way. Then we can extract the paraemters names and create a list of paraemter that we want to check (this list can be also an input from Excel). Whit a simple Python script that compares all the parameters name, agains the list of predifined parameters, we can easily extract two lists: the first is the list of matched and the second is the list of unmatched. This is the python code. import  clr clr. AddReference ('ProtoGeometry') from  Autodesk.DesignScript.Geometry  import  * #The inputs to this node...

DynaTools is out!

Since long time I was thinking to create some custom node for Dynamo and now, that time, came. Starting from very simple lines of code, to understand the structure of the ZeroTouchNode (https://github.com/DynamoDS/Dynamo/wiki/Zero-Touch-Plugin-Development), I've finally released my first packege called DynaTools . Ok, the name is not very cool but I didn't spend too much to find it. So let's start with a little explanation of each node. First of all, the package is developed on Dynamo 1.2.1 but I'll compile soon for Dynamo1.3.0. You need to search and download the package to be able to use it :) Then this is a complete list of nodes included in the latest release (not that much nodes but I promise, they'll increase!) CollectorTools Collectors A bounce of nodes that collect categories (mostly MEP) with useful parameters Collectors.CableTray : collect all cable trays in the model  Collectors.Duct : collect all ducts in the model Collectors....

Interesting link to programming lessons

Take a look at cgcircuit if you're interest in c++ plugin programming There're 3 courses about c++ and plugin creation for maya http://www.cgcircuit.com/browsepage.php?op=1&val=6 and a course about math insisde deformations http://www.cgcircuit.com/lessondetailcomplete.php?val=599