Page 1 of 1

Pins script commands - questions

Posted: Fri Nov 20, 2015 11:02 am
by formatio
Hi Paul

I tried to play with pins and commands a little and have some questions.

1. Is it possible to change the value of parent pins i.e. [Resolution] or [Kernel] or [Environment] ?
2. Is there a way (at current state) to get a current value of specified pin (via rhino script or commands) to manipulate it further?
3. Could we get a list of pin names to use (since I couldn't find any way to retrieve it - lua, api, browser - too much for me :)
4. I'm asking about pin names list because I can't get to work pin names that consist of two parts i.e Hotpixel removal - [hotpixelremoval] throws message "Pin not found".
5. What values pins with disabled/enabled should have?
6. What value resolution pin should have - 512x512? or 512px512px? (if it is editable)

Regards,
Mac

Re: Pins script commands - questions

Posted: Sat Nov 21, 2015 5:21 am
by face_off
1. Is it possible to change the value of parent pins i.e. [Resolution] or [Kernel] or [Environment] ?
Not sure what you mean by this. You cannot change the Kernel type - but you can change the float and int pins of the kernel.
2. Is there a way (at current state) to get a current value of specified pin (via rhino script or commands) to manipulate it further?
Good question. Can a RhinoScript command return a value? Looking at the Rhino API, it looks like a RhinoScript command is one way - so it does something and returns success or failure - I don't think it can return a value. I posted this question on the McNeel forum.
3. Could we get a list of pin names to use (since I couldn't find any way to retrieve it - lua, api, browser - too much for me :)
4. I'm asking about pin names list because I can't get to work pin names that consist of two parts i.e Hotpixel removal - [hotpixelremoval] throws message "Pin not found".
Open Octane Standalone, Script->Open LUA Browser->Items tab->select the NT_IMAGER_CAMERA->check the name of the Hotpixel Removal pin (ie. it is "hotpixel_removal").
5. What values pins with disabled/enabled should have?
Only Float and Int pins types are supported. I will add Bool pin types in the next release.
6. What value resolution pin should have - 512x512? or 512px512px? (if it is editable)
You cannot current use OctaneChangePinValue to set the resolution value. If you need this, I will add a new command in the next release to set the resolution.

Paul