View Full Version : Help with a simple bevel script

03 March 2012, 02:52 PM
Hi all, i'm creating a scene where every object has to have the same amount of bevel, so i think it's a good idea to create a script for it.

So, i know that has to be somthing similar to this:

Application.SelectObj("Piece8", "", True)
Application.SelectAllUsingFilter("Edge", "siCheckComponentVisibility", "", "")
Application.ApplyTopoOp("BevelComponent", "Piece8.edge
", "siUnspecified", "siPersistentOperation", "")
Application.SetValue("Piece8.polymsh.bevelop.nbsubdivs", 1, "")
Application.SetValue("Piece8.polymsh.bevelop.ratio", 0.05, "")
Application.SetValue("Piece8.polymsh.bevelop.units", 0, "")
Application.SetValue("Piece8.polymsh.bevelop.miter", True, "")

the problem is that i don't know how to set that the bevel has to apply to my selection.

CGTalk Moderation
03 March 2012, 02:52 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.