Node Editor - How to Rotate

Next
 From:  fcwilt
9884.1 
Hi,

I would like to be able to select an object and the center of rotation using the mouse and have these values as input to the Node Editor "script" - see attached.

Right now the center of rotation is hard coded to verify that rotation using the slider worked but I don't know how to set these values via a point selected with the mouse.

Thanks.

Frederick

EDITED: 26 Mar by FCWILT

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9884.2 In reply to 9884.1 
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  fcwilt
9884.3 In reply to 9884.2 
Hi,

Sorry but I still don't see how to set the X,Y,Z values of a Point node by selecting a location with the mouse.

Thanks.

Frederick
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9884.4 In reply to 9884.3 
Hi Frederick, I don't think there is any method set up in the node editor to pick a point with the mouse like you would in a regular MoI drawing command.

You would probably need to create a point object using Draw curve > More > Pt and then feed in that point object.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  fcwilt
9884.5 In reply to 9884.4 
Hi Michael,

OK I will see if that is doable.

Thanks.

Frederick
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
9884.6 In reply to 9884.5 
Hi Frederick,

The pointcoordinates script might help with picking a point, and getting the XYZ coordinates.
https://moi3d.com/forum/index.php?webtag=MOI

I am unsure what kind of interface with nodeeditor would work...
I suppose the rotation axis (Frame) would depend upon the active view? Top, Front, or Right. (or 3D?)

What sort of widget node would permit mouse input to a .nod file?

- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Karsten (KMRQUS)
9884.7 
Hello Frederick,

preselect the point object in moi and create a new point in the node editor with points2\Point. This node will take the coordinates of the selected point object. To see the point you can connect a point in NE with Info\showFrame.

Hope that helps!

Have a nice day
Karsten
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  fcwilt
9884.8 In reply to 9884.7 
Hi Karsten,

Thanks for the help.

I got it to work.

If I move the Point Object is there anyway to update the Point Node other than removing it and creating a new one?

The Selected Node used to select the object to rotate has the Clear/Update options but the Point Node does not.

Frederick
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Karsten (KMRQUS)
9884.9 In reply to 9884.8 
Hello Frederick,

sorry - no it's a one way ticket. The idea is to get it's geometry in the node editor and work then inside it.

Karsten
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  fcwilt
9884.10 In reply to 9884.9 
Hi,

Thanks for the info.

Frederick
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All