softmonkey.co.uk
HOME | PHOTOS | CGI | TUTORIALS | LINKS | CONTACT | OPTIONS
  • Colours:
  • Default
  • | Blue
  • | Green
  • | Gold
  • | Orange
previous post Next post
ARCHIVES | CATEGORIES | SEARCH
  • October 2007 (1)
  • February 2007 (3)
  • January 2007 (3)
  • November 2006 (8)
  • October 2006 (11)
  • 3D Stuff (8)
  • Games (2)
  • Gubbins (8)
  • Site Updates (9)
  • Work in Progress (1)
  • XBOX 360 (2)
  • XSI Resourses (6)

Create Presets - XSI Addon

October 25th, 2006 at 10:16 pm | Posted in 3D Stuff, XSI Resourses |

Create Presets InterfaceDownload (Requires XSI v5.1)

Description:
This addon creates new entries in your Get>Primitive menu under polymesh and curves for custom presets. For example under your polymesh menu you will find new entries for meshes like “pants” and “mushroom”. You can also create your own very simply. Each preset is stored as a JScript file, so these can be executed very easily outside of the menus (for automatic rigging).

Usage:
To use the polygon mesh primitives…

  • Get>Primitive>Polygon Mesh>Mesh Presets…>%preset_name% - will load a preset
  • Get>Primitive>Polygon Mesh>Mesh Presets…>Save New Preset… - will save the selected polygon mesh as a jscript. You will prompted for a name. Giving an exisiting name will overwrite the existing file.
  • Get>Primitive>Polygon Mesh>Mesh Presets…>Manage Presets… - will open a explorer (windows) or xterm (linux) pointing at the preset location.

You have a mirrored structure for curve presets.

There are four commands available for use:

  • LoadMeshPreset( object_name, jscript_preset_file )
  • SaveMeshPreset( object, object_name, output_path )
  • LoadCurvePreset( object_name, jscript_preset_file )
  • SaveCurvePreset( object, object_name, output_path )

Notes:
This plug-in is not an exporter. It was designed with people who do a lot of rigging in mind, who want quick and simple access to primitive curves and meshes for use in scene and rig creation.
Keep meshes light (i.e less than 10K polygons) - this is a scripted solution (for now).
Curves presets also support subcurves.

Installation Instructions:
Drag’n'drop the addon file into a viewport or Use the File>Addon>Install tool
More information on installing XSI addons on XSI Wiki

There are some built-in meshes and curves to get you started…
Examples of Create Presets Addon

To help you make curve presets, here is a little JScript that you can run on selected curves to create a single curve list object.

var crvlist = SICreateCurve( "crvlist", 3, 1) ;

for( i=0 ; i<Selection.count ; i++ )
{
    if( Selection(i).type != "crvlist" )
    {
        Logmessage( Selection(i).fullname + " is not a curve", siError ) ;
        DeleteObj( crvlist ) ;
        break ;
    }
    else
    {
        var curveobj = Selection(i) ;

        for( j=0 ; j<curveobj.ActivePrimitive.Geometry.Curves.count ; j++ )
        {
            var vbArgs = new VBArray(curveobj.ActivePrimitive.Geometry.Curves(j).Get2( 0 )) ;
            var args = vbArgs.toArray();

            crvlist.ActivePrimitive.Geometry.AddCurve( args[0], args[1], args[2], args[3]  ) ;
        }
    }
}

SelectObj( crvlist ) ;

Write a comment




Help?

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

If you wish to insert a piece of programming code into your comment, please use the following syntax: [code lang="language_name"]...your code...[/code] where language_name cane be cpp (C++), python (Python), javascript (Javascript and JScript), html (HTML), xml (XML), java (Java), css (CSS), sql (SQL), perl (Perl) and mysql (MySQL)

I recommed using Firefox 2+, since it includes a built in spell checker.

previous post Next post SSPD | Log in | WordPress Powered | Get Firefox | Get Opera | 0.706s | Subscribe using RRS2