Jump to content

Specifying Pattern in Copy Sop


hcs

Recommended Posts

I am working on modeling DNA and am using the copy sop to create the repeating spiraling shape of the strands. I am making different shapes for the different pairs, and would like to somehow use copy stamping (or anything really) to have the pairs appear in a specific pattern in the chain. I can easily randomize the pairs, or go through the same ones in order repeatedly, but I cannot think of a way to be able to create a pattern I choose. Any suggestions would be appreciated.

I have attached a very basic test, showing only two possible pairs as different colors and picking which to use randomly.

Thanks!

DNA_Test.hipnc

Link to comment
Share on other sites

One quick soln is to create ramp float parameter on twist(copy) sop in your file, lets call it test.

Create a variable(lets call it chk) in stamp tab of this twist node and set its value to - chramp("test",$CY/$NCY,0) * n (where n is Total no of different pairs you want to copy)

In switch node write following expression - stamp("../Twist", chk, 0)

Now with ramp you can define the pattern.

Edited by sadhu
Link to comment
Share on other sites

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.   Paste as plain text instead

  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...