Thanks Stephen.. worked a treat..
Alex On Wed, Aug 15, 2012 at 11:35 AM, Stephen Blair <[email protected]>wrote: > Here's something in Python > > names = ["Test", """Coming > Soon""", "XSI", > """one > two > THREE""", "SUMATRA"] > > for n in names: > text = > Application.CreateMeshText("CurveListToSolidMeshForText", > "siPersistentOperation") > if n.find( "\n" ): > n = n.replace( "\n", "\\par\r\n" ) > Application.SetValue(str(text) + > ".crvlist.TextToCurveList.text.singleline", 0, "") > > Application.SetValue(str(text) + > ".crvlist.TextToCurveList.text.text", "%s%s%s" % > ("_RTF_{\\rtf1\\ansi\\deff0{\\fonttbl{\\f0\\froman\\fcharset0 > Arial;}}\r\n\\viewkind4\\uc1\\pard\\lang1033\\f0\\fs20 ", n, > "\\par\r\n}\r\n"), "") > Application.SetValue(str(text) + ".extrudelength", 1, "") > > > From: [email protected] [mailto: > [email protected]] On Behalf Of Alex Dinnin > Sent: August-15-12 5:01 AM > To: [email protected] > Subject: A good old fashioned scripting question > > Hi everyone, > > I was wondering if someone might be able to help me. > > I've got to make about 500 words and sentences as 3D extruded text. > > I've use the script editor to set this up. > > However what I want the script to do is either give me a pop up so I can > add the text. > > or look at a .txt file with all the names on it. > > the trouble I am running into is that the text varies from one to line to > three lines. > > this is where I am so far... > > > CreateMeshText("CurveListToSolidMeshForText", siPersistentOperation); > SetValue("polymsh.polymsh.CurveListToMesh.crvlist.TextToCurveList.text.singleline", > 0, null); > SetValue("text2.text.text", > "_RTF_{\\rtf1\\ansi\\deff0{\\fonttbl{\\f0\\froman\\fcharset0 Gill Sans > MT;}}\r\n\\viewkind4\\uc1\\pard\\qc\\lang2057\\b\\f0\\fs20 " COMING > "\\par\r\nSOON\\par\r\n}\r\n<file:///\\par\r\nSOON\par\r\n%7d\r\n>", null); > > > SetValue("polymsh.polymsh.CurveListToMesh.extrudebackward", 0, null); > SetValue("polymsh.polymsh.CurveListToMesh.extrudelength", 2, null); > SetValue("polymsh.polymsh.CurveListToMesh.beveldepth", 0.05, null); > > SetValue("polymsh.polymsh.CurveListToMesh.stepcontour", 16, null); > SetValue("polymsh.polymsh.CurveListToMesh.stepholes", 16, null); > SetValue("polymsh.polymsh.CurveListToMesh.bevelholeproportional", false, > null); > > SetValue("polymsh.polymsh.CurveListToMesh.crvlist.TextToCurveList.line_spacing", > -0.2, null); > SetValue("polymsh.polymsh.CurveListToMesh.crvlist.TextToCurveList.fitsize", > 10, null); > Translate(null, 0, 0.721923818576748, 0, siRelative, siLocal, siObj, > siXYZ, null, null, null, null, null, null, null, null, null, 0, null); > FreezeObj(null, null, null); > SetValue("polymsh.Name", "COMING_SOON", null); > > So for this.. the COMING is on one line and the SOON is on another. > > Can anyone help ??? > > cheers > -- > Alex > -- Alex Dinnin tel - 0777 575 5326 www.adinnin.com

