zostera Posted January 26, 2003 Share Posted January 26, 2003 Creating geometry using the command line is relatively straightforward in autocad and maya for example, to create a sphere (simple command sequence): (autocad): 3d s (sphere) 0,0,0 (origin) 2 (radius) 16 (longitudinal segments) 16 (latitudinal segments) (maya): sphere -r 5,2,5 -n bigBoy (create a sphere called bigBoy) I have read the scripting manual and the user guide chapter on scripting, but do not understand how to create a sphere (or object) using the textport. Should I have looked somewhere else? __________________________________________ What does 'cf' in 'opcf' represent? Quote Link to comment Share on other sites More sharing options...
MG Posted January 26, 2003 Share Posted January 26, 2003 You sure you read the right documentation? Well, here's an example I made. opadd sphere "bigBoy"; opparm bigBoy type ("mesh") rad ("5" "2" "5") rows ("20") cols ("10") I've included a little CMD script. Quote Link to comment Share on other sites More sharing options...
zostera Posted January 27, 2003 Author Share Posted January 27, 2003 Thanks for replying MG, + for the downlaod; that's what I am looking for. I will go through the documentation again. MEL and Autocad Lisp commands were easier to follow, but your example has helped with the syntax (opadd for the object; followed by opparm for the segments). In the interim I found/checked 'help' in the textport and it explained quite a few functions, including opcf and opadd. Much appreciated MG Quote Link to comment Share on other sites More sharing options...
danteA Posted January 27, 2003 Share Posted January 27, 2003 Make sure you also learn the "opscript" command and study its output. Quote Link to comment Share on other sites More sharing options...
MG Posted January 27, 2003 Share Posted January 27, 2003 No problem zostera! Quote Link to comment Share on other sites More sharing options...
Mcronin Posted January 27, 2003 Share Posted January 27, 2003 Also type exhelp in a textport for expression help which you can also use in your scripts Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.