@mauovernet I know this forum isn't for Xpresso (as mentioned below). But attached is a solution scene to what I think you're after.
Condition_Visiblity_Switch_001.c4d
Hope it helps.
@mauovernet I know this forum isn't for Xpresso (as mentioned below). But attached is a solution scene to what I think you're after.
Condition_Visiblity_Switch_001.c4d
Hope it helps.
@bokibo This is very easy to implement using just Xpresso, rather than Python. Do you need to use Python?
I've attached a solution if it's helpful.
height_user_data_solved.c4d
@m_adam Thanks for your help. Apologies for not following the rules. I'm struggling with the rules of Python at the moment so it's not surprising! Will try to be a better poster in future.
@zipit Thank you for taking the time to reply. Much appreciated.
Out of interest - How did you learn C4D Python? I can't find any ground up courses or tutes. They're either too advanced for beginners or so basic they just show you how to drag and drop commands from the script log.
I've already taken a general python course. But I find the structure of C4D python baffling and need some help understand the basic structure of data in the program.
Hi @zipit . Thank you so much for your help. I don't think I would have ever figured this out for myself!
Hi,
I'm very new to C4D python and am having trouble doing the simplest thing. Eventually I want to create a script that controls quite a few things related to Takes. However, my first baby step is simply to create a new Take and add it to the list.
My first attempt seems to work but when I right-click my new take I cannot delete it and certain behaviours crash C4D! Can someone tell me what I am doing wrong, as I've copied most of this script from a Cineversity script that seems to behave just fine.
def main():
td = doc.GetTakeData()
pt = td.GetMainTake()
ct = td.SetCurrentTake(pt)
nt = td.AddTake("",pt,pt)
td.InsertTake(nt,pt,2)
td.SetCurrentTake(nt)
nt.SetName("My Take")
c4d.EventAdd()
Any help is much appreciated.