DNA WALKABOUT

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

AttachmentSize
dna_walkabout.ms1.49 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tommym's picture

DNA walkabout

that did not work here is another

AttachmentSize
dna_geometry.png 165.56 KB

Paul

Anubis's picture

...

Ok, will review it later ...

my recent MAXScripts RSS (archive here)

tommym's picture

DNA walkabout

OK Anubis

I have made up a PNG for you also.

Paul

AttachmentSize
dna_geometrypng.png 170.63 KB

Paul

Anubis's picture

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 :)

AttachmentSize
dna-max-vpcapture.png 97.7 KB

my recent MAXScripts RSS (archive here)

tommym's picture

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

AttachmentSize
dna_obj_files.obj 26.82 KB

Paul

Anubis's picture

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 :)

my recent MAXScripts RSS (archive here)

tommym's picture

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

Paul

Anubis's picture

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 ;)

AttachmentSize
max-fileio-error.png 5.71 KB

my recent MAXScripts RSS (archive here)

tommym's picture

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

AttachmentSize
dee__spago_for_script.max 432 KB

Paul

tommym's picture

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

Paul

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.