THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/06/2011 at 06:58, xxxxxxxx wrote:
I don't understand how to get the current BaseView instance.
Any ideas ?
On 09/06/2011 at 07:51, xxxxxxxx wrote:
I'm not sure if I understand what you're asking for.
Is this what you need?:
bd = doc.GetActiveBaseDraw()
bd[c4d.BASEDRAW_DATA_SDISPLAYACTIVE]=0 // shading mode attribute
bd[c4d.BASEDRAW_DATA_WDISPLAYACTIVE]= 1 // wire mode attribute
bd[c4d.BASEDRAW_DATA_USEPROPERTIESACTIVE]=1 //Display Tags chkBox attribute
EventAdd();//Update all the changes
On 09/06/2011 at 07:52, xxxxxxxx wrote:
Unfortunately, not. In your example, you set some options to the current BaseDraw instance. But what I want is the current BaseView instance.
Search for "BaseView" in the Py4D SDK.
On 10/06/2011 at 04:09, xxxxxxxx wrote:
BaseDraw inherits from BaseView so this should be instance you are looking for. Cheers, Sebastian
On 10/06/2011 at 04:44, xxxxxxxx wrote:
Ah haha lol didn't think of the inheritance