Adverti horiz upsell

screenspace width 1.0.0 for Maya (maya script)

Allows screenspace width for pfxToPoly strokes

License
Button download
379 Downloads

Compatibility

  • 7.x

Operating Systems

  • Irix
  • Linux
  • Mac
  • Windows

History

Created:04/04/2006
Last Modified:04/04/2006
File Size: 4.16 KB
Currently the screenspace line width controls for paint effects (also toon lines)  do not work when the stroke or toon line is converted to poly. This script allows a brush to have screenspace width after convert to poly. However it requires a little setup. First put this script "screenspaceWidth.mel" in your scripts directory. Now in maya select your desired brush( this loads it as a template ). If this is a simple brush (tubes is OFF) then you will need to type "makeTubeOn". This makes the current template brush a "tubes ON" brush, but preserves the same look. Tubes needs to be on so that you can use as runtime mel function on the brush. Now edit the brush attributes and set the brushes "runTime func" attribute to "screenspaceWidth". The current script assumes you want lines to be in screenspace for the camera "persp". If you are using another camera substitute "persp" in screenspaceWidth.mel with your camera name. Now either paint with the brush, assign it to a curve( "attach brush to curve" ) or assign to a toon node. You can adjust the width the the global scale on the brush, and the width should be constant with respect to a camera. If you want the width to update in the model viewports when you change the view turn on "forwardTwist", although it will make tumbling your view slow( it should always update OK for renders). Do NOT turn on "screenspaceWidth" on the brush. You can now convert the pfx to poly and it will still be in screenspace width.

Please use the Bug System to report any bugs.
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.