hcs Posted May 3, 2013 Share Posted May 3, 2013 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 Quote Link to comment Share on other sites More sharing options...
sadhu Posted May 8, 2013 Share Posted May 8, 2013 (edited) 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 May 8, 2013 by sadhu Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.