Jump to content
Developer Wiki and Function Reference Links ×

3d Locus does not Rotate about a point?


Benson Shaw

Recommended Posts

@Pat Stanford - Ja. Good idea! Thanks!

 

I wonder about that MiniCad design decision idea. The workspace tools and commands seem to work as expected with 3d Loci.

 

Not to take away from Pat's tip, but this seems a workaround. How would Marionette users (especially inexperienced ones) know to do that conversion.  Is that perhaps addressed somewhere in those multiple hours of intro videos?

 

image.thumb.png.9ba529187e24f7727fb923a8669d802b.png

 

Thanks again, Pat

-B

  • Like 1
Link to comment

If you select the Rotate 3D node and then click the Description button in the OIP, it tells you exactly what types of objects the node works on.  I just wanted to know why, so I looked at the script. Turns out it used the Set3DRot vector script function (that has been around since Minicad). And the Vectorscript Function Reference has the same list of the types of objects it works on.

 

Programming (even using Marionette) is always an issue of understanding the limitations of what the code can do.

Link to comment

@Pat StanfordThanks for looking and commentary.  Those such as yourself with loads of experience in the underlying VS might find and understand the limitations.  I look at the Rotation node description and see nothing that indicates a 2d or 3d locus would not be an acceptable object for action by the node.

Maybe there is some mathematical or VS argument that a 3d locus is NOT an object? (A locus is only a location? One is not a prime number? String theory and multiple universes are . . . um . . . something?)

image.thumb.png.d8c69a34b1e90a2824984f290bb42287.png

 

 

I am not versed in VS. That Set3dRotation line in the node script is not informative for me. (not your fault!)

 

@Marissa Farrell is kindly reviewing some of these older nodes to update descriptions, scripts, user friendliness, etc.  This presents hope for me and other occasional Marionette dabblers that I will have easier rout to success in future!  I think Marionette is really cool and full of potential, but only implement it occasionally. And usually run into roadblocks. To the forum I go! Thanks all!

 

-B

Link to comment

Also not clear why 3d loci are not on list of "acceptable" objects.  Loci from 3d tool set respond as expected to the Rotate 3d command in the Modify menu.  If I understand properly, the  Rotate 3d command somehow incorporates that same Set3dRotation script?   Something about a locus seems counter to the script.  Or maybe script could be modified to include the 3d loci?  Meanwhile, group it! And, I'm off to slider questions

 

-B

  • Like 1
Link to comment

No real information, but likely that the original thought was that loci are used as "layout locations" and therefore should not respond to menu commands to move them. At that time loci were used for things like the center  of a sweep and the center point of a mirror.

 

And once things get set in a programming language, they are hard to change. Change it to do what you want and how many other scripts that depended on the old functionality will be unknowingly broken.

 

You know it is not working, so do what you have to to make your script work as you want.

  • Like 1
Link to comment

@Antonio Landsberger Thanks. That's basically what I am doing to move things forward, along with asking for others' help.  I'm not at all a scriptor/pythonista. Often my knowledge of trig and other maths can be applied to networks of existing nodes. With that, I'm often wishing some of the nodes behave more closely to the drawing space tools and commands.

 

@Pat Stanford 

On 6/11/2025 at 8:20 AM, Pat Stanford said:

the old functionality will be unknowingly broken

Absolutely. See also comments above by @Marissa Farrell regarding node updates and breaking networks.  My preferred solution would be to issue a brand new node with better functionality but with a new name, v2 suffix or the like.  This way the old node is available for replicating structure and function of older networks.  Witness the Enhanced Rectangle node by @DomC.

 

And, yes. Take an alternate path when network not working. A stop at the forum might help determine whether the problem is pilot error or node problem.  It was wild to see @Letti R cook up 3 alternate networks for rotation. I have since created another couple.

 

-B

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...