Scripting and Macros examples in the documentation

Scripting and Macros examples are useful in the documentation.
I’m making a button for importing mesh from an external UV editor.
But I wish to interact with the _Import command and I do not know where to look in the documentation.
It looks like is missing the Rhino buttons command section.
If i hit in the rhino web page, “learn” I go to tutorials:
https://www.rhino3d.com/tutorials
And at that point, I get lost looking for a command macro section for programing simple buttons.
Looks like missing the command line macros

How to Import using a custom command macro button?

Here is the result of what I was looking for.
Button to import always the same object.

! -_Import
“X:\path\mesh.obj”
MapYtoZ=Yes
enter

This macro is useful in my case because I’m exporting the mesh to RizomUV and back in a fat way after applying some UV mapping modifications.

Where I can find all the other options like MapYtoZ=Yes for OBJ in the documentation?

I think this kind of scripting command button example can help in the documentation here:
https://docs.mcneel.com/rhino/6/help/en-us/index.htm#fileio/wavefront_obj_import_export.htm

As is done for example for FBX scripting as a side note (should call it macro?):
https://docs.mcneel.com/rhino/6/help/en-us/index.htm#fileio/motionbuilder_fbx_import_export.htm%3FTocPath%3DFile%20I%2FO|File%20Formats|_____24

In PHP documentation, users can place a code example close to the command and others can upvote them.

Perhaps of some help:

https://wiki.mcneel.com/rhino/basicmacros
https://wiki.mcneel.com/developer/macroscriptsetup

For creating macros of Rhino commands always start by running the -dash version of the command to see the command line options.

1 Like

In documentation the “-” and what you can do with it was not clear or well explained for my English level (it’s my third language).

OK, as a feedback:
How do I navigate in the web site from Learn (https://www.rhino3d.com/tutorials) to there and back?

To Web Master or Developer:

For example If I’m at:
http://docs.mcneel.com/rhino/5/help/en-us/commands/setpt.htm

I cant go back to
http://docs.mcneel.com/rhino/5/help/en-us/commandlist/command_list.htm

Also for:
http://docs.mcneel.com/rhino/6/help/en-us/commands/setpt.htm

These are supposed to be browsed through the top navigation page:

https://docs.mcneel.com/rhino/6/help/en-us/index.htm#commands/setpt.htm

1 Like

But how do a new user go from https://www.rhino3d.com/tutorials
to there?

https://docs.mcneel.com/rhino/6/help/en-us/index.htm

It’s a good question… I think that not all the Wiki pages are considered to be “official documentation” thus they are perhaps hesitant to link to it… dunno for sure. Those two I cited above were written by me.

1 Like