Hi GUYS,
I need some brains to work on this script
for DNA Wandering stuff.
I have made 4 straight splines but can go no further.
Now I am trying to attach them and my line keep
rejecting.
If you check my video you see that I am starting
to build the outline of the cube.
It is oriented as shown.
( http://www.youtube.com/watch?v=zhY9RMPmqEo )
I have attached the script that make the 4 lines
--For my Script PAULS DNA WALKABOUT
select $Shape01
max modify mode
subobjectLevel = 0
modPanel.setCurrentObject $Shape01.baseObject
splineOps.startAttach $Shape01
_____need to attach $Shape02 $Shape03 $Shape04
THANKS from
Paul
By
Comments (24)
Comment policy
DNA walkabout
Anubis
Have you given up on DNA walkabout ?
I have no reply
Paul
?...
What you mean?
I remeber I done and close my assistance on this one :)
sorry for the delay
I think we can move this to email response.
I follow your instruction and looks like the scene is ready, but I can send the .max file to confirm.
Just mail me to: anubiss(at)abv.bg
Uh :)
As I work and try to help at the same time, I presume will miss something :) I move the pivot pos to [0,0,0] on Vertical, but forgot about rotation. At the moment I can only promise to repeat the test as soon as I can ;)
DNA walkabout
OK Anubis
I think I have solved the problem. We have lost all pivots.
I am enclosing a new OBJ set, It is oriented different so what you have
to do is make the VERTICAL parent and LINK every thing and repostion the VERTICAL to 0,0,0 rotate 90,0,0
except a new cube outline and box in 000 these can be used to replace the others by reorientating
135, -35.264, 30 this will bring everything back to MAX.
Paul
Attachments
DNA walkabout
Hi Anubis
It is essential that you use front view. If the vertical axis is not showing the correct orientation and pivot rotation the copy will do things wrong. Also I usually use a total dummy for everything and zero to world axis. But I could not with OBJ files.
Paul
DNA walkabout
I just checked again in front view World axis.
Vertical Pos 0,0,0 rotation 90,0,0
New axis Pos 0,0,0 rotation 87.595,70.559 ,-32.408 absolute world
Are you in front view ?
DNA walkabout
Did you see my last it should be minus -32.408 I forgot the minus sign
test
here is whats happens with new bended axis (white color):

Attachments
DNA walkabout
I just checked and the Z 32.408 should be -32.408
DNA walkabout
that did not work here is another
Attachments
Ok, will review it later ...
DNA walkabout
OK Anubis
I have made up a PNG for you also.
Paul
Attachments
puzzle out
Hi Paul,
I import the .obj file successfully and made a screenshot to can see what i've got. All base and offset transform of all objects are fully reseted. Also read your last post 3-4 times and get lost :)
Attachments
DNA walkabout
OK Anubis.
I have enclosed the folder DNA OBJ Files no mats allowed. They are all named
and they come in OK. The colors are different but you will have to go into properties
and alter back face nul. The diags & boxes have been added so you can
check for spot on. But they could also be used to look real sharp as rungs
they will bring home the perfect geometry of the DEE & SPAGO
In the cube outlines I have encluded a purple vert AXIS and a yellow bend AXIS
The orientation rotate will be lost in the OBJ files.
So in world axis the purple pivot is pos 0,0,0. rotation 90,0,0
You will have to copy and give the copy a rotation of 87.594 , 70.559 , -32.408
This will be the bend axis sys coords. I have repositioned a green DEE to this axis
This DEE at 180 rotation to the vertical dee set.
When you nudge up a cube copy the distance is 692.815 and is the same for the cubes
to nudge in the Z along the bend axis.
when you nudge up A copy of a DEE you use 692.815 plus 120 rotate in Z axis
It is the same proceedure on the bend axis. But you can rotate the cube outline 120
also but it is optional. So like in the video the SPAGO must rotate with 0-1-2.
I mentioned the 35.264 not being perfectly spot on and I found this on the web
35.26438698 it comes from tetrahedron geometry.
Hope you can read the files
Paul
Attachments
OK
As you feel I can help then there nothing to worry about ;)
Btw, many abstract mathematical theories available out there (chaos theory, catastrophe theory, numeric theory), they all are hard for absorb but very interesting anyway, while practical maths are so boring to me :)
DNA walkabout
Hi Anubis.
I will attach OBJ files tomorrow they can be open with a text editor also for
coordinates. There is no sweat about math it is just the 35.264 angle maybe varies 265 264
(it is a tetrahedron angle) it is just that when you look at the vertex positions they vary very slightly. I made the Dee and Spago from a 6 point edit poly plane. It does the job and you can create them the same with your previous script I was concerned about the nurb swirls
eating up the bytes. But the the 6 points looking like perfect geometry. Please do not sweat on this. You will soon get familiar with the geometry slow but sure, (Rome was not built in a day). It is a thousand times simpler than that there chaos theory I did not go to university.
Paul
Hi Tommy
The maths (especially algebra and geometry) is not my strong side :( I was curious though, and only reading your post do not helps me to catch what you're after, so I try to open the scene file but w/o success (see the screenshot). Since I saw before the second plugin in the list of missing dll's, I think that you save that scene in a higher Max than main (2009). Ok, never mind, if you have scripting question and I can help... at least will try ;)
Attachments
DNA walkabout
OK Anubis
I am enclosing the geometry for the DEE and SPAGO setup
If anybody wants play around you are quite welcome.
But not commercially. The cubes are oriented at 135, -36.264, 30
but it does not seam to balance spot on. If I play with the 264 it makes things worse. Maybe somebody can figure this out. I show the axis at
a sys coord of 70.206,-9.805,-123.353 seams pretty good. But it would be nice if somebody up in maths could verify these angles. I have kept the DEE and SPAGO down to 6 vertices. So it should dance about with min memory.
So it is down to script experts now.
From Paul
Attachments
DNA walkabout
Anubis
I am working on a new DEE and SPAGO I will let you have them 6 vertexes apiece
for min memory.
Paul
DNA WALKABOUT
It can support the pair of us 50 50
thanks
Glad to know I have support the science with something :)
DNA Walkabout
Wow thanks Anubis,
You make it look so easy. The next step is to turn this into the cube outline
The outer cube edges are 700 by 700 by 700 and the center inner cube is 100 by 100 by 100
What I aim to end up with is to get the DNA "DEE" and "SPAGO" to string along like crazy by just punching in the numbers 0.1.2 with S or feeding a text and produce a DNA 4 Color String to move to perfect order around in 3d space. Which could be a big thing for science. I realize this is putting you guys out a bit
but it will not see daylight without your help.
Thanks from Paul
interesting video...
First to say, forget all
functions as soon as possible. They are kernel of bugs that corrupt the scene. The rest functions for shapes are fine, but splineOps is a full garbage.
So, you need to draw the lines one by one and then attach them? If so, you can use
(but below will show an alternative):
As you know the coords, the alternative (more easy) way w'd be to draw entire shape at once (no needs attaching in this case):
Cheers!