mcjTreeMakerA




Introduction


mcjTreeMakerA is a companion script for the mcjTracer2 plugin

but it can also be used without the plugin to export web-browser-renderable vector art files ( SVG )

it creates 2D flat tree shapes ( no leaves )


The recursive tree building method was developped by Gurpreet : http://techie-notebook.blogspot.ca/




Installation


the mcjTreeMakerA.zip installation package is found in the attachments section at the bottom of this page

unzip it in your daz content folder, typically C:\Program Files\DAZ\Studio\content\ 

once installed, it will appear in your content library, under Studio / Scripts / mcasual 





Typical Use


Create a null node or a primitive sphere

select it


If you have the mcjTracer2 plugin installed on your PC

create an mcjTracer2 node attached to the sphere

in the mcjTracer2 Parameters tab, enable "Track / track mode"

also enable the "Track / Use XScale as Width Control" option

enable the "Geometry / Treat Vertices As One Long Line" option

launch mcjTreeMakerA


click on the Do it button

a tree will be created and will be visible if you have the mcjTracer2 plugin


You could now use the "Save tree as svg" button to save the tree as a vector-art file

which can be viewed using any web browser

and could be embedded using proper html codes




Parameters



Bend range : in degrees the spread angle applied at each branch junction, the angle is chosen at random in that range

Length Range: in centimeters the length of branch segments - the length is chosen at random in that range

Depth : the number of levels of branching in the tree

Exported height : in pixels the height of the vector art tree  


this  is SVG Vector Art

 

License


//===================================================================
// by mCasual/Jacques
//===================================================================
// ( MIT License ) 
// Copyright (c) <2013> <mCasual/Jacques>
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use,
// copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following
// conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.
//===============================================================================================

ċ
mcjTreeMakerA.zip
(14k)
mCasual Jacques,
Aug 25, 2013, 5:03 PM
Ċ
mCasual Jacques,
Aug 25, 2013, 5:03 PM
Comments