PDA

View Full Version : addModifier question


peliosis
01-03-2007, 10:49 AM
I have a linewith sweep modifier, when trying to add normalize spline mod before sweep (addModifier myLine myNmlSpl before:1) I get a message that my mod is invalid.
It is valid and gets easily applied when using modPanel interface.
The thing is I don't want to use modPanel. Is there any way to apply the "invalid" modifier other than sequentially one after another (line>normalize spline>sweep)?

shibumenon
01-03-2007, 11:32 AM
The sweep modifier converts the line into a mesh, hence the message that the mod is invalid.
You could simply disable this modifier before adding normalize_Spl, and then again enable it.



myLine.modifiers[1].enabled = false
addModifier myLine myNmlSpl before:1
myLine.modifiers[1].enabled = true

peliosis
01-03-2007, 10:40 PM
silly me...Thanks:)

CGTalk Moderation
01-03-2007, 10:40 PM
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.