Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / Plugins - Extensions / Re-create the Tape Helper as a Scripted Plugin
  RSS 2.0 ATOM  

Re-create the Tape Helper as a Scripted Plugin
Rate this thread
 
24301
 
Permlink of this thread  
avatar
  • KenjiQ
  • Posted: 19 March 2009 02:03 AM
  • Total Posts: 30
  • Joined: 20 February 2009 06:04 AM

Hey all,

My first attempt at writing a scripted plugin. I’m needing to create an object like the Tape helper, but one that holds a few more custom attributes. It needs to be created with those attributes, so adding them with Parameter helper won’t solve it.
Unfortunately the Tape helper doesn’t allow plugins to be extended from it.

Ideally it would consist of:
* A ‘control’ object which holds all of the attributes
* A ‘target’ object which marks the extend of the system
* A line or some geometry representing the distance between them (the system represents a hydraulic ram)
As with the Tape Helper, we should be able to move either point individually or select the line or geometry to select them both.

Does anyone have any idea how to emulate the Tape Helper, preferably as a Scripted Plugin?

Clues I have so far are:
* The two ends of the tape are separate objects
* The control end is of the Tape class and has a lookat applied to it’s transform to look at the target (not like a usual lookat?)
* The target end is of the Target class, the same as the Target of a Spot or Camera
* Selecting the Tape line shows ‘1 Helper Selected’ in the Command Panel and ‘select #($Tape01, $’Tape01.Target’)’ in the Listener

Any help much appreciated

Cheers
Kenji



Replies: 0