Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hello,
Thanks a lot for your help !
Hello there,
for the plugin i'm working on, I need to generate an aeronautical numerotations. Meaning it goes like A, B , C... Z, AA, AB , AC I made a code wich I fill with the number of letters I want and the distance I want between each letters.
import c4d def main(): number= op [c4d.ID_USERDATA,3] distance = op [c4d.ID_USERDATA,4] alphabet=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"] ; for x in range( number): if ((x//26)-1==-1) : null = c4d.BaseObject ( c4d.Onull) texte = c4d.BaseObject(1019268) texte[c4d.PRIM_TEXT_TEXT]= alphabet [x] print (alphabet [x]) texte.InsertUnder ( null) else : null = c4d.BaseObject ( c4d.Onull) texte = c4d.BaseObject(1019268) texte[c4d.PRIM_TEXT_TEXT]= alphabet [(x//26 - 1)]; alphabet [x%26] print (alphabet [x//26 - 1], alphabet [x%26]) texte.InsertUnder ( null) texte[c4d.ID_BASEOBJECT_REL_POSITION,c4d.VECTOR_Z] = x* distance return null
This is the result of my programs. I have the right letters but it display only the letters corrrespodings to the number not all letter before. Like in the picture above.
I hope my issue is clear
Thanks a lot
Nadja