[Closed] scripted line creation tool
Yeah, I posted too quickly there…I saw the <sweep>.CustomShapeName and thought I was at the finish line. My apologies. :banghead:
Meanwhile, when I tried:
theMod.shapes[1] = createProfile() –my function-defined shape
I am told:
“–Unable to convert: “Line01” to type: MaxObject”
I was hopefull this would work since I read in the docs:
“The name of the object creation function is the object’s class name. “
Does this need to be “registered” with Max in some way?
Now you could of course parametrize these shapes by storing their coordinates in an INI file and rebuilding the shape from scratch
…
you would read some knot points from a text file and recreate the shape on the fly, then assign to the sweep.
Wouldn’t I still need to get Max to recogize the class?
I appreciate your help.
It needs a CLASS INSTANCE. In human words, it means it wants a scene object of that class. So if your cross-section is called $Line01, just assign that!
AHA…
ok I get it now.
Man, scripting is a lot to digest for someone who is only used to pushing polygons around. 😮
Thanks for being so helpful.