Navigation

    • Register
    • Login
        No matches found
    • Search
    1. Home
    2. OllyFJ
    O

    OllyFJ

    @OllyFJ

    0
    Reputation
    2
    Posts
    14
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    OllyFJ Follow

    Best posts made by OllyFJ

    This user hasn't posted anything yet.

    Latest posts made by OllyFJ

    RE: python combobox get current value

    @zipit Thanks mate, that's done it!

    posted in Cinema 4D SDK •
    python combobox get current value

    Hey, fairly basic question but I'm pretty new to this and struggling to solve it, I'm trying to write a save script in python, I've filled a combo box with a list of directories, I need to access the string of the currently selected value to link to a second combobox to search for the next folder in the chain, how would I go about doing this? in Houdini I have the same tool working using 'self.ui.jobID.currentText() ' is there a similar function in c4d?

     self.AddComboBox(J_NAME, c4d.BFH_SCALEFIT, initw=300, inith=10)
     self.AddChild(J_NAME,0,'______') 
            self.jobs = 'C:/Users/Olly/Downloads/'
            if os.path.isdir(self.jobs):
            
                # add only directories to list
                i = 0
                dirlist = next(os.walk(self.jobs))[1]
                dirlist.sort()
                for d in dirlist:
                    
                    if os.path.isdir(self.jobs+d):
                        i += 1                   
                        self.AddChild(J_NAME, i, d)
    

    Thanks!

    posted in Cinema 4D SDK •