PDA

View Full Version : Create simple NURBS plane using MaxScript?


MrSparkle
02-10-2006, 08:55 AM
Hi,

how can I create a simple NURBS Plane with MaxScript? I tried the Point_Surf object, but it seems that there is no way to define the parameters like the width and height of the object. I could not find any advise in the MaxScript Online Help.

I guess I have to create 4 CVs and connect them with Nurbs Curves and then extrude them or something like that.

I have the following code to create a NURBS object. I want it to create a simple plane inside the object when the button is pressed:


plugin geometry SimpleNurbsPlane
name:"SimpleNurbsPlane"
category:"Test"
replaceUI:true
classID:#(0x43bab9a3, 0x14917c65)
extends:NURBSSurf
(
rollout Rollout01 "Test" (
button Button01 "Create"

on Button01 pressed do (
-- Create NURBS Plane inside the object
)
)
)

How can I do this forcing MaxScript not to create a new object but to create the Plane as a sub-object?

Thank you for your help!
Chris

MrSparkle
02-13-2006, 11:43 AM
Why isn't it possible to access the NURBS sub-object with:


on Button01 pressed do (
s = getNURBSSet $.delegate #relational
)

I always get error "No getNURBSSet function for NURBS Surfaces". But if I test the object's class "classOf $.delegate" returns "NRUBSSurf". What's wrong with that getNURBSSet function?

Thanks
Chris

CGTalk Moderation
02-13-2006, 11:43 AM
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.