Notifications
Clear all

[Closed] wanted , got Problem

Here is my problem:


    Interface: finalRender
     Properties:
     Methods:
  	<integer>numREPasses()
  	<boolean>addREPass passName fileName
  	<boolean>delREPassName passName
  	<boolean>delREPass pass
  	<integer>numREsForPass pass
  	<boolean>addREForPass pass re layerName
  	<boolean>delREForPassRef pass re
  	<boolean>delREForPass pass re_id
  	<TSTR by value>getREPassName pass
  	<boolean>setREPassName pass passName
  	<TSTR by value>getREPassFilename pass
  	<boolean>setREPassFilename pass fileName absPath
  	<boolean>getREPassEnable pass
  	<boolean>setREPassEnable pass enable
  	<maxObject>getREPassElement pass re_num
  	<boolean>setREPassElementEXRFormat pass re_num type format
  	<boolean>loadREPassEXRParams pass
  	<boolean>saveREPassEXRParams pass
     Actions:

So Why this gives error:

finalRender_stage_1.finalrender.numREPasses()

error:

-- Argument count error: numREPasses wanted 1, got 0

Is it supposed to want 0 not 1?
By the way all methods are like that always wanting more than it should be:)
If I put any numbur it results:

-- Runtime error: Object does not implement this interface: finalRender
8 Replies

Try:

finalrender.numREPasses finalRender_stage_1

See “Interfaces” page documentation in the MAXScript reference.

Thank you for replying
But I do not understand why I should try to put ” finalRender_stage_1″as a property?
Any way it results an error:

-- Unknown property: "numREPasses" in finalRender

I just Wanted to know if I am doing something wrong or it is a bug in the 3rd party plugin.

nm… :D…

thank you for replying.

the problem is that this function is not to write how many I want, but to read the number of how many exist, as I showed in the first post this function has no argument other function as arguments written besides them .

Ah sorry bro, I wasn’t paying attention very well to the code in your OP it seems

I’m sorry but I’m on holidays so I can’t test. I have no 3ds Max with me. 2 weeks… It’s hard!
What I know is that some functions interfaces only works with at list one parameter passed; the object to apply the function to.

1 Reply
(@mhdmhd)
Joined: 10 months ago

Posts: 0

Never mind, I know it is holidays,thank you for trying to help

I already tried global and sub interface both result in an error.

I don’t have final render so I can’t test this but my guess is you should try to use the interface itself as a global and not as a sub interface. like this:

finalrender.numREPasses()