How to access advanced section in IRay render settings?

Trying to access the Render to Canvas checkbox and the Node List. I tried Rob's sample for finding properties in the render settings, but had no luck. Is there something special about the advanced tab?

Comments

  • jag11jag11 Posts: 885

    What you are looking you may find it in App.getRenderMgr().getRenderElementObjects(), which gives an array with two elements(objects), "General Render" and "NVIDIA Iray Render Options". The latter happens to be an instance of the DzIrayPropertyHolder class, which holds the advanced properties you're after.

    declare class DzIrayPropertyHolder {    elementID: number;	// 9    name: string;	// NVIDIA Iray Render Options    objectName: string;	// NVIDIA Iray Render Options    renderToCanvases: boolean;	// false    activeCanvasChanged(): void;    addDataItem(p0: DzElementData): any;    addNode(p0: string, p1: DzNode): any;    addPrivateProperty(p0: DzProperty): any;    addProperty(p0: DzProperty): any;    beginEdit(): any;    cancelEdit(): any;    canvasDefitionListChanged(): void;    canvasNameChanged(p0: DzIrayCanvasDefinition): void;    canvasTypeChanged(p0: DzIrayCanvasDefinition): void;    className(): any;    clearAllAnimData(): any;    clearAnimData(p0: DzTimeRange): any;    clearCanvasDefitions(): any;    clearNodeLists(): any;    copyFrom(p0: DzElement): any;    copyToClipboard(p0?: QString[]): any;    createElementCopy(p0: DzElementDuplicateContext): any;    createElementCopySignal(p0: DzElementDuplicateContext): any;    deleteDataItem(p0: DzElementData): any;    deleteLater(): any;    destroyed(p0?: QObject): void;    doDuplicateElement(p0: DzElementDuplicateContext): any;    doMergeElement(p0: DzElement, p1: DzElementDuplicateContext): any;    duplicateElement(p0: DzElement, p1: DzElementDuplicateContext): any;    duplicateElementSignal(p0: DzElement, p1: DzElementDuplicateContext): any;    duplicateMissingCustomData(p0: DzElement): any;    duplicateMissingCustomDataWithContext(p0: DzElement, p1: DzElementDuplicateContext): any;    duplicateMissingPrivateProperties(p0: DzElement): any;    duplicateMissingPrivatePropertiesWithContext(p0: DzElement, p1: DzElementDuplicateContext): any;    duplicateMissingProperties(p0: DzElement): any;    duplicateMissingPropertiesWithContext(p0: DzElement, p1: DzElementDuplicateContext): any;    environmentChanged(): void;    findCanvasDefition(p0: string, p1?: boolean): any;    findDataItem(p0: string): any;    findDataItemIndex(p0: DzElementData): any;    findMatchingProperty(p0: DzProperty): any;    findPrivateProperty(p0: string, p1?: boolean): any;    findPrivatePropertyByLabel(p0: string, p1?: boolean): any;    findProperty(p0: string, p1?: boolean): any;    findPropertyByLabel(p0: string, p1?: boolean): any;    finishEdit(): any;    getAlphaType(): any;    getAttributes(p0: DzSettings): any;    getCanvasDefinition(p0: number): any;    getDataItem(p0: number): any;    getDataItemList(): any;    getElementChild(p0: number): any;    getElementParent(): any;    getExpandedLPE(p0: string, p1?: QSet): any;    getLabel(): any;    getLists(): any;    getLoadScript(): any;    getMaxSamples(): any;    getName(): any;    getNodes(p0: string): any;    getNumCanvasDefinitions(): any;    getNumDataItems(): any;    getNumElementChildren(): any;    getNumPrivateProperties(): any;    getNumProperties(): any;    getPrivateProperty(p0: number): any;    getPrivatePropertyGroups(): any;    getPrivatePropertyList(): any;    getProperty(p0: number): any;    getPropertyGroups(): any;    getPropertyList(): any;    getRenderMode(): any;    getTgtConvergencePixelRatio(): any;    getUniqueDataItemName(p0: string): any;    getUniquePrivatePropertyName(p0: string): any;    getUniquePropertyName(p0: string): any;    hasNode(p0: string, p1: DzNode): any;    hasNodeList(p0: string): any;    idListChanged(): void;    inEdit(): any;    inherits(p0?: string): any;    insertPrivateProperty(p0: number, p1: DzProperty): any;    insertProperty(p0: number, p1: DzProperty): any;    isDataItemNameUnique(p0: string, p1?: boolean): any;    isPrivatePropertyNameUnique(p0: string, p1?: boolean): any;    isPropertyNameUnique(p0: string, p1?: boolean): any;    iskindof(p0: string): any;    labelChanged(p0: string): void;    makePersistent(): any;    mergeElement(p0: DzElement, p1: DzElementDuplicateContext): any;    mergeElementSignal(p0: DzElement, p1: DzElementDuplicateContext): any;    moveDataItemToIndex(p0: DzElementData, p1: number): any;    movePrivateProperty(p0: DzProperty, p1: DzElement): any;    moveProperty(p0: DzProperty, p1: DzElement): any;    nameChanged(p0: string): void;    nodeListChanged(p0: string): void;    parentChanged(): void;    privatePropertyAdded(p0: DzProperty): void;    privatePropertyListChanged(): void;    privatePropertyListInTreeChanged(): void;    privatePropertyRemoved(p0: DzProperty): void;    privatePropertyTreeChanged(): void;    propertyAdded(p0: DzProperty): void;    propertyListChanged(): void;    propertyListInTreeChanged(): void;    propertyRemoved(p0: DzProperty): void;    propertyTreeChanged(): void;    removeCanvasDefition(p0: number): any;    removeCanvasDefition(p0: DzIrayCanvasDefinition): any;    removeDataItem(p0: DzElementData): any;    removeList(p0: string): any;    removeNode(p0: string, p1: DzNode): any;    removePrivateProperty(p0: DzProperty): any;    removePrivateProperty(p0: string): any;    removeProperty(p0: DzProperty): any;    removeProperty(p0: string): any;    renameNodeList(p0: string, p1: string): any;    renderContextOptionsChanged(): void;    renderModeChanged(): void;    renderOptionsChanged(): void;    renderToCanvasesChanged(p0: boolean): void;    setAttributes(p0: DzSettings): any;    setLabel(p0: string): any;    setLoadScript(p0: DzScript): any;    setName(p0: string): any;    setNodes(p0: string, p1: DzNodeList): any;    settingsChanged(): void;    shouldSortOnLoad(): any;    toneMapperChanged(): void;    update(): any;}

     

  • Awesome, I'll try this. Thanks Jag!

Sign In or Register to comment.