Elephant Repository
 1-12  …  93-112  113-132  133-152  153-172  173-192  …  493-503

Previous
Next
 From:  Michael Gibson
9476.133 In reply to 9476.132 
Hi Pilou, you would need to replace the alert with the code that opens the node editor dialog.

So for example if you want to have v3 do this:

​moi.ui.createDialog( 'nodeeditor/index.html', 'resizeable,defaultWidth:680,defaultHeight:420', moi.ui.mainWindow );

and have v4 do this:

​moi.ui.createDialog( 'moi://appdata/nodeeditor/index.html', 'resizeable,defaultWidth:680,defaultHeight:420', moi.ui.mainWindow );

You would place the v3 code in this spot:

script: if ( moi.majorVersionNumber == 3 ) { moi.ui.alert('running in v3'); } else if ( moi.majorVersionNumber == 4 ) { moi.ui.alert('running in v4'); }

and place the v4 code in this spot:

script: if ( moi.majorVersionNumber == 3 ) { moi.ui.alert('running in v3'); } else if ( moi.majorVersionNumber == 4 ) { moi.ui.alert('running in v4'); }


So the whole thing would look like this:

script: if ( moi.majorVersionNumber == 3 ) { moi.ui.createDialog( 'nodeeditor/index.html', 'resizeable,defaultWidth:680,defaultHeight:420', moi.ui.mainWindow ); } else if ( moi.majorVersionNumber == 4 ) { moi.ui.createDialog( 'moi://appdata/nodeeditor/index.html', 'resizeable,defaultWidth:680,defaultHeight:420', moi.ui.mainWindow ); }


Hope that helps!

- 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:  Frenchy Pilou (PILOU)
9476.134 In reply to 9476.133 
That was not evident indeed but miracle...
the "Whole thing" works inside the both V 3 (0.97) and beta V 4 (1.0) ! (in the same time :)
Bravo! No more headaches for this for me now!

(i will try again if the 1.0 works also for the V 3 )
  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)
9476.135 
Second miracle: the 1.0 works now also for the V3 !
Excellent! :)
Added to the Install http://moiscript.weebly.com/install-elephant.html

EDITED: 9 Sep 2019 by PILOU

  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)
9476.136 
About of the Rotate Node

"Frame" parameters are yet nebulous :)
box = 5 , 5 , 2



Edit : ok I have found the missing link - a true moment of inspiration! :)

EDITED: 9 Sep 2019 by PILOU

  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)
9476.137 
Maybe there is a trick for make a Rotation / a 3D Line ?

Rotate Node (English French)
http://moiscript.weebly.com/transform.html



EDITED: 9 Sep 2019 by PILOU

  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)
9476.138 
Twist Node ( English French)
http://moiscript.weebly.com/transform.html



---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  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)
9476.139 
Flow Node (English French)
http://moiscript.weebly.com/transform.html



  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)
9476.140 
Circular Array Node (English French)
http://moiscript.weebly.com/transform.html



  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)
9476.141 
I have some troubles with Orient Node!

Seems no automatic "orientation"! ???

  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
9476.142 In reply to 9476.141 
Hi Pilou, I think you'll need to supply a coordinate frame at your desired position instead of just a point.

- 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:  Frenchy Pilou (PILOU)
9476.143 In reply to 9476.142 
Ok but i don't see difference from a simple "Move" + "Rotate Point" against "Orient" + "Rotate Point" ?

And I must find something who give the exact orientation because with sliders there is not "snap" :)
Something like a "given face" gives the orientation of it...or...

And other thing : does the "Native functions" can work only from them ? So making "Orient" just with them...

EDITED: 10 Sep 2019 by PILOU

  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
9476.144 In reply to 9476.143 
Hi Pilou,

re:
> Ok but i don't see difference from a simple "Move" + "Rotate Point" against "Orient" + "Rotate Point" ?

Well the regular Transform > Orient command is indeed a combination of movement plus rotation. With something that might have more complex rotations orient could be more convenient. Like if you are applying some kind of repeated rotation on a coordinate frame Orient can take that coordinate frame directly.


> And other thing : does the "Native functions" can work only from them ? So making "Orient" just with them...

Sorry, I don't understand this part.

- 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:  Frenchy Pilou (PILOU)
9476.145 In reply to 9476.144 
>> And other thing : does the "Native functions" can work only from them ? So making "Orient" just with them...

Actually there are 2 parts of nodes : native and extensions

So i will to know for example if native Orient can be used only with native nodes for obtain an exact results !
Because it was created before the extensions!

Problem for the moment i can't find a simple trick for have the good result!
Difficulties (for me) is transform a selection in a "frame" usable! :)
Orient something following a line or a face...surely trivial but...


EDITED: 10 Sep 2019 by PILOU

  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
9476.146 In reply to 9476.145 
Hi Pilou,

> So i will to know for example if native Orient can be used only with native nodes for obtain an exact results !
> Because it was created before the extensions!

Sorry, I don't know the answer to this.


> Problem for the moment i can't find a simple trick for have the good result!
> Difficulties (for me) is transform a selection in a "frame" usable! :)
> Orient something following a line or a face...surely trivial but...

For a curve you could call evaluateTangent on it to get its tangent direction and use that as the z axis of your frame, and you would then need to make the x and y axis directions by doing some vector math like using crossproduct.

If a curve is planar, (crv.isPlanar == true) then you can get the frame of its plane by crv.planarFrame

The next v4 beta will also has that for faces as well.

- 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:  Frenchy Pilou (PILOU)
9476.147 In reply to 9476.146 
yes but seems all that is in the "extention" parts!

So stay in stand by till I finish the "native" part :)
  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)
9476.148 
Section POINTS
http://moiscript.weebly.com/points-e.html

Points Node (English French) not sure of what is this! (from where comes the first curve of points? A simple line of ... by default because I have nothing selected! :)





EDITED: 10 Sep 2019 by PILOU

  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)
9476.149 
InterpPts Node (English French)
http://moiscript.weebly.com/points-e.html





---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  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)
9476.150 
SpherePts Node ( English French)

http://moiscript.weebly.com/points-e.html



---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  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)
9476.151 
PolygonPts Node ( English French )

http://moiscript.weebly.com/points-e.html



---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  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)
9476.152 
MovePts Nodes (English French)

http://moiscript.weebly.com/points-e.html



---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  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

 

 
Show messages:  1-12  …  73-92  93-112  113-132  133-152  153-172  173-192  193-212  …  493-503