How to know if a render pass is enabled
On 13/03/2013 at 10:23, xxxxxxxx wrote:
I am able to get the list of passes via GetFirstMultipass().
And I can request the description name, but I was not able to get the "checked" status of the pass.
On 13/03/2013 at 11:11, xxxxxxxx wrote:
Is this what you want?
import c4d def main() : rd = doc.GetActiveRenderData() #gets the render settings rd[c4d.RDATA_MULTIPASS_ENABLE]= True #Enables the mp option rd.Message(c4d.MSG_UPDATE) #Tell c4d you changed it state = rd[c4d.RDATA_MULTIPASS_ENABLE] #Gets the mp on/off state print state c4d.EventAdd() if __name__=='__main__': main()
On 13/03/2013 at 12:01, xxxxxxxx wrote:
the videopost state is implemented with the BaseList2d bits.
edit something like this :
state = myVideoPostNode.GetBit(c4d.BIT_VPDISABLED)
On 13/03/2013 at 13:28, xxxxxxxx wrote:
Thanks, I will try the getBit state.