MaxScript drawing a simple triangle

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  06 June 2013
MaxScript drawing a simple triangle

Hi everyone ,

I'm a newbie in 3ds Max and Maxscript and I've tried to complete a project.Some part of this project I need to draw surfaces whose lines numbers and lines' vertex coordinates are already saved in matrices. Now I've searched how can I draw these surfaces and I've found
gw.triangle <vertex_point3_array> <color_array>
method and here is the example code that I found it in autodesk webpage. :

gw.setTransform(Matrix3 1)
gw.triangle #([0,0,0], [50,0,0], [50,50,0]) #(red,red,red)
gw.triangle #([0,0,0], [50,50,0], [0,50,0]) #(green,green,green)
gw.enlargeUpdateRect #whole

When I wrote this piece of code in MaxScript Listener , I though some or a triangle should appear in the view scene , but there wasn't any chance in my screen.. is there anyone where am I wrong ? what should I do extra to draw a triangle ? Thanks in advance.

P.S. : I'm using 3Ds Max 2010 student version and My laptop is 64 bit Win7
  06 June 2013
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 12:29 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.